Skip to content

Commit

Permalink
Merge pull request #1667 from hagendornIT/#1666-Display-unit-cost-wit…
Browse files Browse the repository at this point in the history
…h-currency-symbol

Display unit cost with currency symbol
  • Loading branch information
hillelcoren committed Sep 14, 2017
2 parents badd6fb + b324248 commit 761319a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/assets/js/pdf.pdfmake.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 761319a

Please sign in to comment.