mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Don’t show 0.00 for line item discounts
This commit is contained in:
parent
83ee802fa4
commit
396995ab3c
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -826,6 +826,7 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
|
|||||||
} else if (field == 'custom_value2') {
|
} else if (field == 'custom_value2') {
|
||||||
value = customValue2;
|
value = customValue2;
|
||||||
} else if (field == 'discount') {
|
} else if (field == 'discount') {
|
||||||
|
if (NINJA.parseFloat(discount)) {
|
||||||
if (parseInt(invoice.is_amount_discount)) {
|
if (parseInt(invoice.is_amount_discount)) {
|
||||||
value = formatMoneyInvoice(discount, invoice);
|
value = formatMoneyInvoice(discount, invoice);
|
||||||
} else {
|
} else {
|
||||||
@ -833,6 +834,9 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
|
|||||||
value = discount + '%';
|
value = discount + '%';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
value = '';
|
||||||
|
}
|
||||||
} else if (field == 'tax') {
|
} else if (field == 'tax') {
|
||||||
value = ' ';
|
value = ' ';
|
||||||
if (item.tax_name1) {
|
if (item.tax_name1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user