1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +01:00

Fixed issue with showing paid to date

This commit is contained in:
Hillel Coren 2014-07-23 23:55:04 +03:00
parent 360d3d4f8d
commit f5f87319b2
2 changed files with 2 additions and 2 deletions

View File

@ -47278,7 +47278,7 @@ function displaySubtotals(doc, layout, invoice, y, rightAlignTitleX)
} }
var paid = invoice.amount - invoice.balance; 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)}); data.push({'paid_to_date': formatMoney(paid, invoice.client.currency_id)});
} }

View File

@ -1353,7 +1353,7 @@ function displaySubtotals(doc, layout, invoice, y, rightAlignTitleX)
} }
var paid = invoice.amount - invoice.balance; 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)}); data.push({'paid_to_date': formatMoney(paid, invoice.client.currency_id)});
} }