mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Support negative payments through the API
This commit is contained in:
parent
2e909e0680
commit
75c7e44c83
@ -40,7 +40,7 @@ class CreatePaymentAPIRequest extends PaymentRequest
|
||||
]);
|
||||
|
||||
$rules = [
|
||||
'amount' => "required|numeric|between:0.01,{$invoice->balance}",
|
||||
'amount' => 'required|numeric|not_in:0',
|
||||
];
|
||||
|
||||
if ($this->payment_type_id == PAYMENT_TYPE_CREDIT) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user