aboutsummaryrefslogtreecommitdiff
path: root/src/classes
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-07 21:48:43 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-07 21:48:43 +0530
commit4e7bcb396921860e20be11b11432866600a8d279 (patch)
tree17d594413d44545180840ad8becc0007e8745654 /src/classes
parenta7ebd2b9034d7b016d77703482ff9f474e5cf2bc (diff)
changed print format a bit
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/invoice_item.ts2
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)
})
})