aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces.ts
blob: 1ace03234b0986e4f9ade5f1cdc407cacb0fad29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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: number // string??

  TotalGST: number // gst percentage
  SGST: number | boolean
  CGST: number | boolean
  IGST: number | boolean
  TotalGSTValue: number // total tax
  // category and brand
}

export interface Person {
  Name: string
  Address: string
  Phone: string
  Email: string
}