Can now update (and remove) auto budget over api

This commit is contained in:
James Cole
2020-03-14 07:43:49 +01:00
parent d1d11ae717
commit bde0732135
4 changed files with 81 additions and 10 deletions

View File

@@ -78,7 +78,7 @@ class BudgetStoreRequest extends Request
return [
'name' => 'required|between:1,100|uniqueObjectForUser:budgets,name',
'active' => [new IsBoolean],
'auto_budget_type' => 'in:reset,rollover',
'auto_budget_type' => 'in:reset,rollover,none',
'auto_budget_currency_id' => 'exists:transaction_currencies,id',
'auto_budget_currency_code' => 'exists:transaction_currencies,code',
'auto_budget_amount' => 'min:0|max:1000000000',