mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-19 19:01:58 +00:00
Fix #4003
This commit is contained in:
@@ -47,7 +47,7 @@ class BudgetFormStoreRequest extends FormRequest
|
|||||||
'name' => $this->string('name'),
|
'name' => $this->string('name'),
|
||||||
'active' => $this->boolean('active'),
|
'active' => $this->boolean('active'),
|
||||||
'auto_budget_type' => $this->integer('auto_budget_type'),
|
'auto_budget_type' => $this->integer('auto_budget_type'),
|
||||||
'transaction_currency_id' => $this->integer('transaction_currency_id'),
|
'transaction_currency_id' => $this->integer('auto_budget_currency_id'),
|
||||||
'auto_budget_amount' => $this->string('auto_budget_amount'),
|
'auto_budget_amount' => $this->string('auto_budget_amount'),
|
||||||
'auto_budget_period' => $this->string('auto_budget_period'),
|
'auto_budget_period' => $this->string('auto_budget_period'),
|
||||||
];
|
];
|
||||||
|
@@ -161,6 +161,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
if (null !== $journal) {
|
if (null !== $journal) {
|
||||||
return $journal->date;
|
return $journal->date;
|
||||||
}
|
}
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -307,7 +308,7 @@ class BudgetRepository implements BudgetRepositoryInterface
|
|||||||
$limitRepos->store(
|
$limitRepos->store(
|
||||||
[
|
[
|
||||||
'budget_id' => $newBudget->id,
|
'budget_id' => $newBudget->id,
|
||||||
'transaction_currency_id' => $autoBudget->transaction_currency_id,
|
'currency_id' => $autoBudget->transaction_currency_id,
|
||||||
'start_date' => $start,
|
'start_date' => $start,
|
||||||
'end_date' => $end,
|
'end_date' => $end,
|
||||||
'amount' => $autoBudget->amount,
|
'amount' => $autoBudget->amount,
|
||||||
|
Reference in New Issue
Block a user