Require date when creating payment
This commit is contained in:
parent
f9a17a595d
commit
298bde6603
1 changed files with 1 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ class CreatePaymentRequest extends PaymentRequest
|
|||
'client' => 'required', // TODO: change to client_id once views are updated
|
||||
'invoice' => 'required', // TODO: change to invoice_id once views are updated
|
||||
'amount' => "required|less_than:{$invoice->balance}|positive",
|
||||
'payment_date' => 'required',
|
||||
];
|
||||
|
||||
if ( ! empty($input['payment_type_id']) && $input['payment_type_id'] == PAYMENT_TYPE_CREDIT) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue