aboutsummaryrefslogtreecommitdiff
path: root/src/classes
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-04 20:31:21 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-10-04 20:31:21 +0530
commit92fb85b8afaacc4a8b5dbb41eea2d0e35eeb6862 (patch)
tree1b7bd25a29d0751f3efbd5e1125a1b079a31045c /src/classes
first commitv0.0.1
Diffstat (limited to 'src/classes')
-rw-r--r--src/classes/address.ts15
-rw-r--r--src/classes/customer.ts21
-rw-r--r--src/classes/item.ts21
3 files changed, 57 insertions, 0 deletions
diff --git a/src/classes/address.ts b/src/classes/address.ts
new file mode 100644
index 0000000..1f42a0b
--- /dev/null
+++ b/src/classes/address.ts
@@ -0,0 +1,15 @@
+export default class Address {
+ addresstext: string
+ city: string
+ state: string
+ postalcode: string
+ country: string
+
+ constructor() {
+ this.addresstext = ''
+ this.city = ''
+ this.state = ''
+ this.postalcode = ''
+ this.country = ''
+ }
+}
diff --git a/src/classes/customer.ts b/src/classes/customer.ts
new file mode 100644
index 0000000..e5d0fff
--- /dev/null
+++ b/src/classes/customer.ts
@@ -0,0 +1,21 @@
+import Address from './address'
+
+export default class Customer {
+ name: string
+ gstin: string
+ contactname: string
+ phone: string
+ email: string
+ website: string
+ billingaddress: Address
+
+ constructor() {
+ this.name = ''
+ this.gstin = ''
+ this.contactname = ''
+ this.phone = ''
+ this.email = ''
+ this.website = ''
+ this.billingaddress = new Address()
+ }
+}
diff --git a/src/classes/item.ts b/src/classes/item.ts
new file mode 100644
index 0000000..271eb3d
--- /dev/null
+++ b/src/classes/item.ts
@@ -0,0 +1,21 @@
+export default class Item {
+ unitofmeasure: string
+ hasdecimalquantity: boolean
+ name: string
+ description: string
+ hsn: string
+ unitprice: string
+ gstpercentage: string
+ brandid: number
+
+ constructor() {
+ this.name = ''
+ this.description = ''
+ this.hsn = ''
+ this.unitprice = ''
+ this.gstpercentage = ''
+ this.unitofmeasure = ''
+ this.hasdecimalquantity = false
+ this.brandid = 0
+ }
+}