From 0cf29dd48b7d59c731519527e26dda959b340664 Mon Sep 17 00:00:00 2001 From: MikunoNaka Date: Sat, 26 Jun 2021 03:19:19 +0530 Subject: Using types in RegisterItemForm now --- src/interfaces.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'src/interfaces.ts') 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 -- cgit v1.2.3