From 464dac56714f4fb187785abda04bf3f2170af2a2 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Thu, 7 Dec 2023 04:22:03 +0530 Subject: showing more useful information in invoice items table --- src/components/invoice_items_table.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/components/invoice_items_table.vue') diff --git a/src/components/invoice_items_table.vue b/src/components/invoice_items_table.vue index 8d6ea6a..865ade2 100644 --- a/src/components/invoice_items_table.vue +++ b/src/components/invoice_items_table.vue @@ -11,11 +11,7 @@ const toast = useToast({ const handleDelete = async (id) => { try { - const res = await axios.delete(`/invoice/item/${id}`) - if (res.status === 200) { - toast.success('Successfully deleted item') - } - + await axios.delete(`/invoice/item/${id}`) emit("refresh") } catch (err) { toast.error('An unhandled exception occoured. Please check logs') @@ -40,7 +36,9 @@ const handleDelete = async (id) => { Brand HSN Unit Price - UOM + GST % + Quantity Unit + Amount
@@ -60,7 +58,11 @@ const handleDelete = async (id) => { {{ item.BrandName }} {{ item.HSN }} {{ item.UnitPrice }} - {{ item.UnitOfMeasure }} + + {{ item.GSTValue }} {{ item.GSTPercentage }}% + + {{ item.Quantity }} {{ item.UnitOfMeasure }} + {{ item.TotalAmount }} {{ item.AmountWithoutGST }} + {{ item.TotalGSTValue }}
-- cgit v1.2.3