mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fix for line item taxes display issue
This commit is contained in:
parent
6ec0288462
commit
8ba71ce6ce
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -503,14 +503,15 @@ NINJA.invoiceLines = function(invoice) {
|
||||
|
||||
var lineTotal = roundToTwo(NINJA.parseFloat(item.cost)) * roundToTwo(NINJA.parseFloat(item.qty));
|
||||
if (account.include_item_taxes_inline == '1') {
|
||||
var taxAmount1 = 0;
|
||||
var taxAmount2 = 0;
|
||||
if (tax1) {
|
||||
lineTotal += lineTotal * tax1 / 100;
|
||||
lineTotal = roundToTwo(lineTotal);
|
||||
taxAmount1 = roundToTwo(lineTotal * tax1 / 100);
|
||||
}
|
||||
if (tax2) {
|
||||
lineTotal += lineTotal * tax2 / 100;
|
||||
lineTotal = roundToTwo(lineTotal);
|
||||
taxAmount2 = roundToTwo(lineTotal * tax2 / 100);
|
||||
}
|
||||
lineTotal += taxAmount1 + taxAmount2;
|
||||
}
|
||||
lineTotal = formatMoneyInvoice(lineTotal, invoice);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user