mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-18 12:33:07 -06:00
User unable to store budgets without auto budget info.
This commit is contained in:
parent
f920d90e3d
commit
8b87204f10
@ -68,7 +68,7 @@ class BudgetFormStoreRequest extends Request
|
|||||||
'name' => 'required|between:1,100|uniqueObjectForUser:budgets,name',
|
'name' => 'required|between:1,100|uniqueObjectForUser:budgets,name',
|
||||||
'active' => 'numeric|between:0,1',
|
'active' => 'numeric|between:0,1',
|
||||||
'auto_budget_type' => 'numeric|between:0,2',
|
'auto_budget_type' => 'numeric|between:0,2',
|
||||||
'auto_budget_currency_id' => 'required|exists:transaction_currencies,id',
|
'auto_budget_currency_id' => 'exists:transaction_currencies,id',
|
||||||
'auto_budget_amount' => 'min:0|max:1000000000',
|
'auto_budget_amount' => 'min:0|max:1000000000',
|
||||||
'auto_budget_period' => 'in:daily,weekly,monthly,quarterly,half_year,yearly',
|
'auto_budget_period' => 'in:daily,weekly,monthly,quarterly,half_year,yearly',
|
||||||
];
|
];
|
||||||
|
@ -78,7 +78,7 @@ class BudgetFormUpdateRequest extends Request
|
|||||||
'name' => $nameRule,
|
'name' => $nameRule,
|
||||||
'active' => 'numeric|between:0,1',
|
'active' => 'numeric|between:0,1',
|
||||||
'auto_budget_option' => 'numeric|between:0,2',
|
'auto_budget_option' => 'numeric|between:0,2',
|
||||||
'auto_budget_currency_id' => 'required|exists:transaction_currencies,id',
|
'auto_budget_currency_id' => 'exists:transaction_currencies,id',
|
||||||
'auto_budget_amount' => 'min:0|max:1000000000',
|
'auto_budget_amount' => 'min:0|max:1000000000',
|
||||||
'auto_budget_period' => 'in:daily,weekly,monthly,quarterly,half_year,yearly',
|
'auto_budget_period' => 'in:daily,weekly,monthly,quarterly,half_year,yearly',
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user