mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup and realign.
This commit is contained in:
@@ -51,7 +51,7 @@ class BillUpdateService
|
||||
$bill->repeat_freq = $data['repeat_freq'];
|
||||
$bill->skip = $data['skip'];
|
||||
$bill->automatch = true;
|
||||
$bill->active = $data['active']??true;
|
||||
$bill->active = $data['active'] ?? true;
|
||||
$bill->save();
|
||||
|
||||
// update note:
|
||||
|
||||
@@ -25,7 +25,6 @@ namespace FireflyIII\Services\Internal\Update;
|
||||
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Models\Recurrence;
|
||||
|
||||
use FireflyIII\Services\Internal\Support\RecurringTransactionTrait;
|
||||
use FireflyIII\Services\Internal\Support\TransactionServiceTrait;
|
||||
use FireflyIII\Services\Internal\Support\TransactionTypeTrait;
|
||||
@@ -65,7 +64,7 @@ class RecurrenceUpdateService
|
||||
$recurrence->apply_rules = $data['recurrence']['apply_rules'] ?? $recurrence->apply_rules;
|
||||
$recurrence->active = $data['recurrence']['active'] ?? $recurrence->active;
|
||||
|
||||
if(isset($data['recurrence']['repetition_end'])) {
|
||||
if (isset($data['recurrence']['repetition_end'])) {
|
||||
if (\in_array($data['recurrence']['repetition_end'], ['forever ', 'until_date'])) {
|
||||
$recurrence->repetitions = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user