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)}); }