mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Updates to budgets.
This commit is contained in:
@@ -12,6 +12,7 @@ namespace FireflyIII\Support\Migration;
|
||||
|
||||
use Carbon\Carbon;
|
||||
use Crypt;
|
||||
use FireflyIII\Events\BudgetLimitStored;
|
||||
use FireflyIII\Models\Account;
|
||||
use FireflyIII\Models\AccountMeta;
|
||||
use FireflyIII\Models\Attachment;
|
||||
@@ -30,6 +31,7 @@ use FireflyIII\Models\Tag;
|
||||
use FireflyIII\Models\Transaction;
|
||||
use FireflyIII\Models\TransactionJournal;
|
||||
use FireflyIII\User;
|
||||
use Navigation;
|
||||
use Storage;
|
||||
|
||||
/**
|
||||
@@ -209,6 +211,10 @@ class TestData
|
||||
'repeat_freq' => 'monthly',
|
||||
]
|
||||
);
|
||||
// also trigger event.
|
||||
$thisEnd = Navigation::addPeriod($start, 'monthly', 0);
|
||||
$thisEnd->subDay();
|
||||
event(new BudgetLimitStored($limit, $thisEnd));
|
||||
|
||||
return $limit;
|
||||
}
|
||||
|
@@ -50,7 +50,6 @@ class Steam
|
||||
*
|
||||
* @param \FireflyIII\Models\Account $account
|
||||
* @param \Carbon\Carbon $date
|
||||
* @param bool $ignoreVirtualBalance
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
|
Reference in New Issue
Block a user