From c7f0047ff04443eab5d9d8ed18342d830c221b8d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Mon, 16 Oct 2017 22:41:56 +0300 Subject: [PATCH] Fix for PHP/JS checks --- resources/views/invoices/edit.blade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resources/views/invoices/edit.blade.php b/resources/views/invoices/edit.blade.php index 38c196e9833d..05c05e1dfe18 100644 --- a/resources/views/invoices/edit.blade.php +++ b/resources/views/invoices/edit.blade.php @@ -1169,9 +1169,9 @@ if (! checkedInvoiceBalances) { // check amounts are correct checkedInvoiceBalances = true; - var phpBalance = invoice.balance; - var koBalance = model.invoice().totals.rawTotal(); - var jsBalance = calculateAmounts(invoice).total_amount; + var phpBalance = roundSignificant(invoice.balance); + var koBalance = roundSignificant(model.invoice().totals.rawTotal()); + var jsBalance = roundSignificant(calculateAmounts(invoice).total_amount); if (phpBalance == koBalance && koBalance == jsBalance) { // do nothing } else {