Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Make sure transfers can't get a budget.
James Colee97283b34b25
diff --git a/app/Factory/TransactionFactory.php b/app/Factory/TransactionFactory.phpindex b0f9406bf8..9ea92e73d2 100644--- a/app/Factory/TransactionFactory.php+++ b/app/Factory/TransactionFactory.php@@ -26,6 +26,7 @@ namespace FireflyIII\Factory;use FireflyIII\Models\Transaction;use FireflyIII\Models\TransactionJournal;+use FireflyIII\Models\TransactionType;use FireflyIII\Services\Internal\Support\TransactionServiceTrait;use FireflyIII\User;use Illuminate\Support\Collection;@@ -124,6 +125,11 @@ class TransactionFactory}// set budget:+ if ($journal->transactionType->type === TransactionType::TRANSFER) {+ $data['budget_id'] = null;+ $data['budget_name'] = null;+ }+$budget = $this->findBudget($data['budget_id'], $data['budget_name']);$this->setBudget($source, $budget);$this->setBudget($dest, $budget);