aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces.ts')
-rw-r--r--src/interfaces.ts12
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