1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Display unit cost with currency symbol

This commit is contained in:
Hendrik Hagendorn 2017-09-14 17:18:34 +02:00
parent badd6fb7e7
commit b324248c68

View File

@ -497,7 +497,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
var row = [];
var item = invoice.invoice_items[i];
var cost = formatMoneyInvoice(item.cost, invoice, 'none', getPrecision(item.cost));
var cost = formatMoneyInvoice(item.cost, invoice, null, getPrecision(item.cost));
var qty = NINJA.parseFloat(item.qty) ? roundSignificant(NINJA.parseFloat(item.qty)) + '' : '';
var notes = item.notes;
var productKey = item.product_key;
@ -526,7 +526,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
}
// show at most one blank line
if (shownItem && !notes && !productKey && (!cost || cost == '0' || cost == '0.00' || cost == '0,00')) {
if (shownItem && !notes && !productKey && !item.cost) {
continue;
}