aboutsummaryrefslogtreecommitdiff
path: root/src/components/invoice_items_table.vue
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-07 04:22:03 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2023-12-07 04:22:03 +0530
commit464dac56714f4fb187785abda04bf3f2170af2a2 (patch)
tree83421741c7a5f4633f927d5b424fdf6fbd2257c6 /src/components/invoice_items_table.vue
parent95d531c8c356cc8e8011b7995b6ef4419c9dc383 (diff)
showing more useful information in invoice items table
Diffstat (limited to 'src/components/invoice_items_table.vue')
-rw-r--r--src/components/invoice_items_table.vue16
1 files changed, 9 insertions, 7 deletions
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) => {
<th scope="col">Brand</th>
<th scope="col">HSN</th>
<th scope="col">Unit Price</th>
- <th scope="col">UOM</th>
+ <th scope="col">GST <span class="sup text-muted">%</span></th>
+ <th scope="col">Quantity <span class="sup text-muted">Unit</span></th>
+ <th scope="col">Amount</th>
<th scope="col" class="table-action-column">
<div class="wrapper">
@@ -60,7 +58,11 @@ const handleDelete = async (id) => {
<td>{{ item.BrandName }}</td>
<td>{{ item.HSN }}</td>
<td>{{ item.UnitPrice }}</td>
- <td>{{ item.UnitOfMeasure }}</td>
+ <td>
+ {{ item.GSTValue }} <span class="sup text-muted">{{ item.GSTPercentage }}%</span>
+ </td>
+ <td>{{ item.Quantity }} <span class="sup text-muted">{{ item.UnitOfMeasure }}</span></td>
+ <td>{{ item.TotalAmount }} <span class="sup text-muted">{{ item.AmountWithoutGST }} + {{ item.TotalGSTValue }}</span> </td>
<td class="table-action-column">
<div class="wrapper">