Fix scrutinizer
This commit is contained in:
parent
5da923c80d
commit
4c87949be0
@ -1499,7 +1499,7 @@ class Invoices extends DolibarrApi
|
|||||||
$amount = price2num($amountarray["multicurrency_amount"], 'MT');
|
$amount = price2num($amountarray["multicurrency_amount"], 'MT');
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($amount > $remainstopay && $accepthigherpayment == false) {
|
if ($amount > $remainstopay && !$accepthigherpayment) {
|
||||||
$this->db->rollback();
|
$this->db->rollback();
|
||||||
throw new RestException(400, 'Payment amount on invoice ID '.$id.' ('.$amount.') is higher than remain to pay ('.$remainstopay.')');
|
throw new RestException(400, 'Payment amount on invoice ID '.$id.' ('.$amount.') is higher than remain to pay ('.$remainstopay.')');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user