diff --git a/frontend/src/components/pages/Estimate.vue b/frontend/src/components/pages/Estimate.vue index f9d57aa..3a449b9 100644 --- a/frontend/src/components/pages/Estimate.vue +++ b/frontend/src/components/pages/Estimate.vue @@ -131,6 +131,7 @@ label="Add Item" icon="pi pi-plus" @click="showAddItemModal = true" + :disabled="!quotationItems || Object.keys(quotationItems).length === 0" />
{{ item.itemName }} @@ -146,7 +147,20 @@ class="qty-input" />
- Price: ${{ (item.standardRate || 0).toFixed(2) }} + X +
+ Rate + +
Discount
@@ -193,7 +207,7 @@
- Total: ${{ ((item.qty || 0) * (item.standardRate || 0) - (item.discountAmount || 0)).toFixed(2) }} + Total: ${{ ((item.qty || 0) * (item.rate || 0) - (item.discountAmount || 0)).toFixed(2) }}