Fix validation for #3532

This commit is contained in:
James Cole
2020-07-06 06:55:27 +02:00
parent 26d19fab32
commit 32e0a5bd80
13 changed files with 19 additions and 19 deletions

View File

@@ -85,8 +85,8 @@ class BillRequest extends Request
{
$rules = [
'name' => 'between:1,255|uniqueObjectForUser:bills,name',
'amount_min' => 'numeric|more:0',
'amount_max' => 'numeric|more:0',
'amount_min' => 'numeric|gt:0',
'amount_max' => 'numeric|gt:0',
'currency_id' => 'numeric|exists:transaction_currencies,id',
'currency_code' => 'min:3|max:3|exists:transaction_currencies,code',
'date' => 'date',