mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-09-30 10:33:30 +00:00
This commit is contained in:
@@ -40,7 +40,7 @@ class JournalFormRequest extends Request
|
|||||||
'revenue_account' => $this->get('revenue_account'),
|
'revenue_account' => $this->get('revenue_account'),
|
||||||
'amount' => round($this->get('amount'), 2),
|
'amount' => round($this->get('amount'), 2),
|
||||||
'user' => Auth::user()->id,
|
'user' => Auth::user()->id,
|
||||||
'amount_currency_id' => intval($this->get('amount_currency_id')),
|
'amount_currency_id_amount' => intval($this->get('amount_currency_id')),
|
||||||
'date' => new Carbon($this->get('date')),
|
'date' => new Carbon($this->get('date')),
|
||||||
'budget_id' => intval($this->get('budget_id')),
|
'budget_id' => intval($this->get('budget_id')),
|
||||||
'category' => $this->get('category'),
|
'category' => $this->get('category'),
|
||||||
@@ -61,7 +61,7 @@ class JournalFormRequest extends Request
|
|||||||
'what' => 'required|in:withdrawal,deposit,transfer',
|
'what' => 'required|in:withdrawal,deposit,transfer',
|
||||||
'amount' => 'numeric|required|min:0.01',
|
'amount' => 'numeric|required|min:0.01',
|
||||||
'date' => 'required|date',
|
'date' => 'required|date',
|
||||||
'amount_currency_id' => 'required|exists:transaction_currencies,id',
|
'amount_currency_id_amount' => 'required|exists:transaction_currencies,id',
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user