diff --git a/app/Http/ValidationRules/PaymentAmountsBalanceRule.php b/app/Http/ValidationRules/PaymentAmountsBalanceRule.php index 12a9b4d1ed..e192edfbdf 100644 --- a/app/Http/ValidationRules/PaymentAmountsBalanceRule.php +++ b/app/Http/ValidationRules/PaymentAmountsBalanceRule.php @@ -78,10 +78,10 @@ class PaymentAmountsBalanceRule implements Rule // nlog(request()->input('invoices')); // nlog($payment_amounts); // nlog($invoice_amounts); - + // nlog(request()->all()); nlog($payment_amounts ." >= " . $invoice_amounts); - return $payment_amounts >= $invoice_amounts; + return round($payment_amounts,2) >= round($invoice_amounts,2); }