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:
parent
63ed477026
commit
ae60acd770
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user