diff options
author | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-09-13 17:26:09 +0530 |
---|---|---|
committer | MikunoNaka <bokuwakanojogahoshii@yahoo.com> | 2021-09-13 17:26:09 +0530 |
commit | c1600045a243e3547fe589bfc7e474d2decaea4c (patch) | |
tree | 73b93eca3c76e2da5a55638794742a76f4927cde /src/Interfaces | |
parent | 92b6da1d37da9232f1f40ac2526b189289049534 (diff) |
moved interfaces to new folder
Diffstat (limited to 'src/Interfaces')
-rw-r--r-- | src/Interfaces/interfaces.ts | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/Interfaces/interfaces.ts b/src/Interfaces/interfaces.ts new file mode 100644 index 0000000..53d14c3 --- /dev/null +++ b/src/Interfaces/interfaces.ts @@ -0,0 +1,71 @@ +export interface Transport { + Name: string + VehicleNum: string + Method: string + GSTIN: string + Builty: string +} + +export interface Item { + Model: string + Description: string + Quantity: number + UnitPrice: number // price without tax/discount + TotalValue: number // UnitPrice * Quantity + Discount: number // percentage of discount + DiscountValue: number + HSN: string + + TotalGST: number // gst percentage + SGST: number | boolean + CGST: number | boolean + IGST: number | boolean + TotalGSTValue: number // total tax + Brand: string + Category: string +} + +// 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 + Brand: string + Category: string +} + +export interface Address { + AddressLine: string + City: string + State: string + PINCode: string + Country: string +} + +export interface Person { + ID?: number + Name: string + Phone?: string + Email?: string + BillAddress: Address + ShipAddress?: Address + Address?: string // to be removed +} + +export interface Invoice { + //Client: Person + Items: Item[] + Transport: Transport +} + +export interface InvoiceSummary { + TotalQuantity: number + TotalRawPrice: number // total price without gst/discount + TotalDiscount: number // total amount of discount + TotalGST: number // total gst to be paid + TotalPriceAfterDiscount: number + TotalPriceAfterGST: number + TotalRoundedOff: number +} |