fixed over payment check

This commit is contained in:
denisdulici 2020-05-27 18:46:19 +03:00
parent 197a95ae7d
commit 104b74f35f

View File

@ -114,7 +114,7 @@ class CreateDocumentTransaction extends Job
} }
$amount_check = (int) ($amount * $multiplier); $amount_check = (int) ($amount * $multiplier);
$total_amount_check = (int) (round($total_amount, $this->currency->precision) * $multiplier); $total_amount_check = (int) ($total_amount * $multiplier);
if ($amount_check > $total_amount_check) { if ($amount_check > $total_amount_check) {
$error_amount = $total_amount; $error_amount = $total_amount;