validation for the recurring documents and transactions added #1pbthq3
This commit is contained in:
parent
61923a08d8
commit
2087a2de3b
@ -32,6 +32,8 @@ class Transaction extends FormRequest
|
|||||||
'category_id' => 'required|integer',
|
'category_id' => 'required|integer',
|
||||||
'payment_method' => 'required|string',
|
'payment_method' => 'required|string',
|
||||||
'attachment.*' => $attachment,
|
'attachment.*' => $attachment,
|
||||||
|
'recurring_count' => 'gte:0',
|
||||||
|
'recurring_interval' => 'exclude_unless:recurring_frequency,custom|gt:0',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -66,6 +66,8 @@ class Document extends FormRequest
|
|||||||
'category_id' => 'required|integer',
|
'category_id' => 'required|integer',
|
||||||
'company_logo' => $company_logo,
|
'company_logo' => $company_logo,
|
||||||
'attachment.*' => $attachment,
|
'attachment.*' => $attachment,
|
||||||
|
'recurring_count' => 'gte:0',
|
||||||
|
'recurring_interval' => 'exclude_unless:recurring_frequency,custom|gt:0',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user