From f5f87319b2082b7d30f4a6af996d01b431993828 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 23 Jul 2014 23:55:04 +0300 Subject: [PATCH] Fixed issue with showing paid to date --- public/built.js | 2 +- public/js/script.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/built.js b/public/built.js index 7a63db34a5..c61a9284ff 100644 --- a/public/built.js +++ b/public/built.js @@ -47278,7 +47278,7 @@ function displaySubtotals(doc, layout, invoice, y, rightAlignTitleX) } var paid = invoice.amount - invoice.balance; - if (invoice.account.hide_paid_to_date === '0' || paid) { + if (invoice.account.hide_paid_to_date != '1' || paid) { data.push({'paid_to_date': formatMoney(paid, invoice.client.currency_id)}); } diff --git a/public/js/script.js b/public/js/script.js index 759d21315e..f9bbf91b32 100644 --- a/public/js/script.js +++ b/public/js/script.js @@ -1353,7 +1353,7 @@ function displaySubtotals(doc, layout, invoice, y, rightAlignTitleX) } var paid = invoice.amount - invoice.balance; - if (invoice.account.hide_paid_to_date === '0' || paid) { + if (invoice.account.hide_paid_to_date != '1' || paid) { data.push({'paid_to_date': formatMoney(paid, invoice.client.currency_id)}); }