diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/invoice_header.vue | 6 | ||||
-rw-r--r-- | src/components/invoice_header_editor.vue | 1 | ||||
-rw-r--r-- | src/router/index.ts | 1 | ||||
-rw-r--r-- | src/views/ViewInvoice.vue | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/src/components/invoice_header.vue b/src/components/invoice_header.vue index 2c3c515..5a57fc8 100644 --- a/src/components/invoice_header.vue +++ b/src/components/invoice_header.vue @@ -1,5 +1,5 @@ <script setup lang="ts"> -import { toRaw, defineProps } from 'vue' +import { defineProps } from 'vue' const props = defineProps(["invoice"]) </script> @@ -56,7 +56,7 @@ const props = defineProps(["invoice"]) <div class="col-md-3"> <table class="table"> <tr> - <td>Address</td> + <td>Billing Address</td> <td>{{ props.invoice.BillingAddress.AddressText }}</td> </tr> @@ -86,7 +86,7 @@ const props = defineProps(["invoice"]) <div class="col-md-3"> <table class="table"> <tr> - <td>Address</td> + <td>Shipping Address</td> <td>{{ props.invoice.ShippingAddress.AddressText }}</td> </tr> diff --git a/src/components/invoice_header_editor.vue b/src/components/invoice_header_editor.vue index 964bd04..ffc5fb0 100644 --- a/src/components/invoice_header_editor.vue +++ b/src/components/invoice_header_editor.vue @@ -44,7 +44,6 @@ const submit = async (e: Event) => { try { const c = toRaw(customer.value) - console.log(c.BillingAddress) const res = await axios.post('/invoice', { "invoicedate": new Date(toRaw(invoiceDate.value)).toISOString(), diff --git a/src/router/index.ts b/src/router/index.ts index 32a2962..d498728 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -85,7 +85,6 @@ const router = createRouter({ }) router.beforeEach((to, _, next) => { - console.log(to.fullPath) if (to.meta.isAuth && !localStorage.getItem('authToken')) { next(`/login?redirect=${to.fullPath}`) } else { diff --git a/src/views/ViewInvoice.vue b/src/views/ViewInvoice.vue index 4ac8325..68857b4 100644 --- a/src/views/ViewInvoice.vue +++ b/src/views/ViewInvoice.vue @@ -51,7 +51,7 @@ onMounted(() => { </script> <template> - <div id="print-preview" class="bg-light text-black"> + <div id="print-preview" class="bg-white text-black"> <invoiceHeader :invoice="invoice" /> <invoiceItemsTable |