From 511e5f3badb871a4407a1cfef2d17a8c99660d30 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sat, 2 Dec 2023 15:54:44 +0530 Subject: added new invoice page --- src/classes/customer.ts | 28 ++++----- src/components/invoice_header.vue | 118 ++++++++++++++++++++++++++++++++++++++ src/router/index.ts | 9 ++- src/views/NewInvoice.vue | 7 +++ 4 files changed, 147 insertions(+), 15 deletions(-) create mode 100644 src/components/invoice_header.vue create mode 100644 src/views/NewInvoice.vue (limited to 'src') diff --git a/src/classes/customer.ts b/src/classes/customer.ts index e5d0fff..b1c2df3 100644 --- a/src/classes/customer.ts +++ b/src/classes/customer.ts @@ -1,21 +1,21 @@ import Address from './address' export default class Customer { - name: string - gstin: string - contactname: string - phone: string - email: string - website: string - billingaddress: Address + 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() + this.Name = '' + this.Gstin = '' + this.ContactName = '' + this.Phone = '' + this.Email = '' + this.Website = '' + this.BillingAddress = new Address() } } diff --git a/src/components/invoice_header.vue b/src/components/invoice_header.vue new file mode 100644 index 0000000..2c62f15 --- /dev/null +++ b/src/components/invoice_header.vue @@ -0,0 +1,118 @@ + + + diff --git a/src/router/index.ts b/src/router/index.ts index 568bad8..7719220 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -8,6 +8,7 @@ import AllCustomers from '../views/AllCustomers.vue' import NewCustomer from '../views/NewCustomer.vue' import AllItems from '../views/AllItems.vue' import NewItem from '../views/NewItem.vue' +import NewInvoice from '../views/NewInvoice.vue' const router = createRouter({ history: createWebHistory(import.meta.env.BASE_URL), @@ -59,7 +60,13 @@ const router = createRouter({ name: 'new item', component: NewItem, meta: { isAuth: true } - } + }, + { + path: '/invoice/new', + name: 'new invoice', + component: NewInvoice, + meta: { isAuth: true } + }, ] }) diff --git a/src/views/NewInvoice.vue b/src/views/NewInvoice.vue new file mode 100644 index 0000000..b2f32e2 --- /dev/null +++ b/src/views/NewInvoice.vue @@ -0,0 +1,7 @@ + + + -- cgit v1.2.3