Partial payment fixed

This commit is contained in:
Batuhan Baş
2019-02-01 16:20:44 +03:00
parent 941989d746
commit 69e456b5bf
4 changed files with 11 additions and 11 deletions

View File

@ -520,8 +520,8 @@ class Invoices extends Controller
$multiplier *= 10;
}
$amount *= $multiplier;
$total_amount *= $multiplier;
$amount_check = (int) ($amount * $multiplier);
$total_amount_check = (int) (round($total_amount, $currency->precision) * $multiplier);
if ($amount > $total_amount) {
$message = trans('messages.error.over_payment');