Fix max amount.

This commit is contained in:
James Cole
2018-07-22 08:36:30 +02:00
parent aed7e6d289
commit 662b832274
4 changed files with 23 additions and 5 deletions

View File

@@ -161,11 +161,11 @@ class JournalFormRequest extends Request
'due_date' => 'date|nullable',
'payment_date' => 'date|nullable',
'invoice_date' => 'date|nullable',
'internal_reference' => 'min:1,max:255|nullable',
'notes' => 'min:1,max:50000|nullable',
'internal_reference' => 'min:1|max:255|nullable',
'notes' => 'min:1|max:50000|nullable',
// and then transaction rules:
'description' => 'required|between:1,255',
'amount' => 'numeric|required|more:0',
'amount' => 'numeric|required|more:0|less:10000000',//
'budget_id' => 'mustExist:budgets,id|belongsToUser:budgets,id|nullable',
'category' => 'between:1,255|nullable',
'source_id' => 'numeric|belongsToUser:accounts,id|nullable',