Commit ab9b9a4
Ahmed Osama
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 notifications1 parent eca6f13 commit ab9b9a4
6 files changed
Lines changed: 625 additions & 3 deletions
File tree
- POS
- src
- components/sale
- pages
- stores
- pos_next/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
0 commit comments