Fix scrutinizer

This commit is contained in:
Laurent Destailleur 2020-10-07 14:53:10 +02:00
parent 5da923c80d
commit 4c87949be0

View File

@ -1499,7 +1499,7 @@ class Invoices extends DolibarrApi
$amount = price2num($amountarray["multicurrency_amount"], 'MT');
}
if ($amount > $remainstopay && $accepthigherpayment == false) {
if ($amount > $remainstopay && !$accepthigherpayment) {
$this->db->rollback();
throw new RestException(400, 'Payment amount on invoice ID '.$id.' ('.$amount.') is higher than remain to pay ('.$remainstopay.')');
}