diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-26 03:19:19 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-06-26 03:19:19 +0530 |
commit | 0cf29dd48b7d59c731519527e26dda959b340664 (patch) | |
tree | cf908fe1c9f96b070a05e020eb30081b4fd3592c /src/interfaces.ts | |
parent | ce832a0bddc02a21d9c382f46b81dd6c114f35f9 (diff) |
Using types in RegisterItemForm now
Diffstat (limited to 'src/interfaces.ts')
-rw-r--r-- | src/interfaces.ts | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/interfaces.ts b/src/interfaces.ts index 1ace032..e85ef29 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -14,7 +14,7 @@ export interface Item { TotalValue: number // UnitPrice * Quantity Discount: number // percentage of discount DiscountValue: number - HSN: number // string?? + HSN: string TotalGST: number // gst percentage SGST: number | boolean @@ -24,6 +24,16 @@ export interface Item { // category and brand } +// for registering new item to DB +export interface NewItem { + Model: string + Description: string + UnitPrice: number // price without tax/discount + HSN: string + TotalGST: number // gst percentage + // category and brand +} + export interface Person { Name: string Address: string |