Skip to content

Commit ab9b9a4

Browse files
author
Ahmed Osama
committed
feat: add edit item details dialog with warehouse stock validation
- Create EditItemDialog component with two-column layout for editing item quantity, UOM, rate, warehouse, and discount - Add custom quantity counter with inline minus/plus buttons - Implement warehouse fetching API endpoint to get all warehouses for company - Add real-time stock validation when changing warehouse with toast notifications - Disable update button when insufficient stock or out of stock - Integrate with posCart store updateItemDetails action - Add edit button to InvoiceCart for each item - Use custom Toast component for stock notifications
1 parent eca6f13 commit ab9b9a4

6 files changed

Lines changed: 625 additions & 3 deletions

File tree

POS/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ declare module 'vue' {
1414
CreateCustomerDialog: typeof import('./src/components/sale/CreateCustomerDialog.vue')['default']
1515
CustomerDialog: typeof import('./src/components/sale/CustomerDialog.vue')['default']
1616
DraftInvoicesDialog: typeof import('./src/components/sale/DraftInvoicesDialog.vue')['default']
17+
EditItemDialog: typeof import('./src/components/sale/EditItemDialog.vue')['default']
1718
InvoiceCart: typeof import('./src/components/sale/InvoiceCart.vue')['default']
1819
InvoiceHistoryDialog: typeof import('./src/components/sale/InvoiceHistoryDialog.vue')['default']
1920
ItemSelectionDialog: typeof import('./src/components/sale/ItemSelectionDialog.vue')['default']

0 commit comments

Comments
 (0)