diff options
Diffstat (limited to 'src/classes')
-rw-r--r-- | src/classes/invoice_item.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/classes/invoice_item.ts b/src/classes/invoice_item.ts index dcb917a..c3da433 100644 --- a/src/classes/invoice_item.ts +++ b/src/classes/invoice_item.ts @@ -37,6 +37,6 @@ export const calculate = (items: InvoiceItem[]) => items.map((x: InvoiceItem) => , GSTValue: gstValue , TotalGSTValue: totalGSTValue , AmountWithoutGST: amountWithoutGST - , TotalAmount: amountWithoutGST.add(totalGSTValue) + , TotalAmount: amountWithoutGST.multiply(gstPercentage).divide(100).add(amountWithoutGST) }) }) |