mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-01 19:47:11 +00:00
@@ -196,7 +196,7 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
$journal->save();
|
$journal->save();
|
||||||
|
|
||||||
// store stuff:
|
// store stuff:
|
||||||
$this->storeCategoryWithJournal($journal, $data['category']);
|
$this->storeCategoryWithJournal($journal, strval($data['category']));
|
||||||
$this->storeBudgetWithJournal($journal, $data['budget_id']);
|
$this->storeBudgetWithJournal($journal, $data['budget_id']);
|
||||||
|
|
||||||
// store two transactions:
|
// store two transactions:
|
||||||
@@ -271,7 +271,7 @@ class JournalRepository implements JournalRepositoryInterface
|
|||||||
$journal->categories()->detach();
|
$journal->categories()->detach();
|
||||||
$journal->budgets()->detach();
|
$journal->budgets()->detach();
|
||||||
|
|
||||||
$this->storeCategoryWithJournal($journal, $data['category']);
|
$this->storeCategoryWithJournal($journal, strval($data['category']));
|
||||||
$this->storeBudgetWithJournal($journal, $data['budget_id']);
|
$this->storeBudgetWithJournal($journal, $data['budget_id']);
|
||||||
|
|
||||||
// negative because source loses money.
|
// negative because source loses money.
|
||||||
|
|||||||
Reference in New Issue
Block a user