From 92fb85b8afaacc4a8b5dbb41eea2d0e35eeb6862 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 4 Oct 2023 20:31:21 +0530 Subject: first commit --- src/classes/address.ts | 15 +++++++++++++++ src/classes/customer.ts | 21 +++++++++++++++++++++ src/classes/item.ts | 21 +++++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 src/classes/address.ts create mode 100644 src/classes/customer.ts create mode 100644 src/classes/item.ts (limited to 'src/classes') 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 + } +} -- cgit v1.2.3