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