The catalog endpoint already sends current_qty and the till already receives it — pos-app.js just never drew it. The number is shown as it is, negatives included, and the tile is styled as out of stock when the quantity is not positive. The cue is current_qty <= 0, not current_qty <= min_qty: only 48 of the 4,083 sellable items have a reorder point set, so a min-based rule would badge every tile and mean nothing. Nothing is blocked. The cashier can still sell the item and the quantity still goes into minus. |
||
|---|---|---|
| .. | ||
| app | ||
| components | ||
| lib | ||
| styles | ||
| middleware.ts | ||
| test-setup.ts | ||