mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Require date when creating payment
This commit is contained in:
parent
f9a17a595d
commit
298bde6603
@ -30,6 +30,7 @@ class CreatePaymentRequest extends PaymentRequest
|
|||||||
'client' => 'required', // TODO: change to client_id once views are updated
|
'client' => 'required', // TODO: change to client_id once views are updated
|
||||||
'invoice' => 'required', // TODO: change to invoice_id once views are updated
|
'invoice' => 'required', // TODO: change to invoice_id once views are updated
|
||||||
'amount' => "required|less_than:{$invoice->balance}|positive",
|
'amount' => "required|less_than:{$invoice->balance}|positive",
|
||||||
|
'payment_date' => 'required',
|
||||||
];
|
];
|
||||||
|
|
||||||
if ( ! empty($input['payment_type_id']) && $input['payment_type_id'] == PAYMENT_TYPE_CREDIT) {
|
if ( ! empty($input['payment_type_id']) && $input['payment_type_id'] == PAYMENT_TYPE_CREDIT) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user