diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-25 15:27:58 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-25 15:27:58 +0530 |
commit | 35a44621c25b06471ae5b29bbdfb35fdcf652cf1 (patch) | |
tree | 377186f820685e9be05d60f0d7a2d8743a8b6a9c /src/interfaces.ts | |
parent | 5d2222d9fa782b94ba6787e5c6b23aab1e468308 (diff) |
Changed the way all the values are calculated for stability
Diffstat (limited to 'src/interfaces.ts')
-rw-r--r-- | src/interfaces.ts | 14 |
1 files changed, 8 insertions, 6 deletions
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 } |