Fixing style errors.

This commit is contained in:
stickler-ci 2020-09-22 14:41:28 +00:00
parent 2dc148eae0
commit 06d41c029d

View File

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