1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

minor fixes for calculations

This commit is contained in:
David Bomba 2022-02-24 09:35:05 +11:00
parent 63ed477026
commit ae60acd770

View File

@ -78,10 +78,10 @@ class PaymentAmountsBalanceRule implements Rule
// nlog(request()->input('invoices')); // nlog(request()->input('invoices'));
// nlog($payment_amounts); // nlog($payment_amounts);
// nlog($invoice_amounts); // nlog($invoice_amounts);
// nlog(request()->all());
nlog($payment_amounts ." >= " . $invoice_amounts); nlog($payment_amounts ." >= " . $invoice_amounts);
return $payment_amounts >= $invoice_amounts; return round($payment_amounts,2) >= round($invoice_amounts,2);
} }