From 35a44621c25b06471ae5b29bbdfb35fdcf652cf1 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Fri, 25 Jun 2021 15:27:58 +0530 Subject: Changed the way all the values are calculated for stability --- src/interfaces.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'src/interfaces.ts') diff --git a/src/interfaces.ts b/src/interfaces.ts index bc355ff..04e7d51 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -10,14 +10,16 @@ export interface Item { Model: string Description: string Quantity: number - UnitPrice: number + UnitPrice: number // price without tax/discount TotalValue: number // UnitPrice * Quantity - Discount: number + Discount: number // percentage of discount + DiscountValue: number HSN: number // string?? - TotalGST: number - SGST: number - CGST: number - IGST: number + TotalGST: number // gst percentage + SGST: number | boolean + CGST: number | boolean + IGST: number | boolean + TotalGSTValue: number // total tax // category and brand } -- cgit v1.2.3