mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 12:12:48 +01: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,12 +826,16 @@ NINJA.invoiceLines = function(invoice, isSecondTable) {
|
||||
} else if (field == 'custom_value2') {
|
||||
value = customValue2;
|
||||
} else if (field == 'discount') {
|
||||
if (parseInt(invoice.is_amount_discount)) {
|
||||
value = formatMoneyInvoice(discount, invoice);
|
||||
} else {
|
||||
if (discount) {
|
||||
value = discount + '%';
|
||||
if (NINJA.parseFloat(discount)) {
|
||||
if (parseInt(invoice.is_amount_discount)) {
|
||||
value = formatMoneyInvoice(discount, invoice);
|
||||
} else {
|
||||
if (discount) {
|
||||
value = discount + '%';
|
||||
}
|
||||
}
|
||||
} else {
|
||||
value = '';
|
||||
}
|
||||
} else if (field == 'tax') {
|
||||
value = ' ';
|
||||
|
Loading…
Reference in New Issue
Block a user