diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-04 15:26:36 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2023-12-04 15:26:36 +0530 |
commit | 331a8da55352c736f08339ae6ca0d9e0eb690058 (patch) | |
tree | eebd21abc445d1f05a681668d1d66bbaa6034e98 /src/components/item_selector.vue | |
parent | d5fab4fefaa3e63c1cda945cf556a0ecfdfa0170 (diff) |
added table to show items of an invoice0.2.2
Diffstat (limited to 'src/components/item_selector.vue')
-rw-r--r-- | src/components/item_selector.vue | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/item_selector.vue b/src/components/item_selector.vue index 9cdbeed..5dc9b84 100644 --- a/src/components/item_selector.vue +++ b/src/components/item_selector.vue @@ -4,7 +4,7 @@ import axios from 'axios' import { useToast } from 'vue-toast-notification' import InvoiceItem from "./../classes/invoice_item" -const props = defineProps(["invoice"]) +const props = defineProps(["invoiceId"]) const emit = defineEmits(["added"]) const toast = useToast({ @@ -42,7 +42,7 @@ const submit = async (e: Event) => { submitting.value = true try { - await axios.post(`/invoice/${props.invoice.ID}/item`, toRaw(item.value)) + await axios.post(`/invoice/${props.invoiceId}/item`, toRaw(item.value)) itemSelection.value = null item.value = new InvoiceItem() emit("added") |