fixed over payment check
This commit is contained in:
@ -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;
|
||||||
|
Reference in New Issue
Block a user