WFDASH-WEBAPP/src/app
Dave 7d2132e000 fix(pos): fix uncaught 500 on checkout, allow overselling into negative stock
- checkoutSale's stock-availability loop called pb.getOne() with no
  try/catch, so a stale/deleted stock_item_id in a persisted cart
  threw all the way up to a bare 500 with no useful message. Now
  caught and returned as a clear pb_error the till can display.
- Removed the insufficient-stock block entirely: the till is used
  ahead of a physical stock take, so a sale must never be blocked
  for lack of stock — current_qty is now allowed to go negative and
  gets corrected at the next stock take. Drops the now-dead
  insufficient_stock/shortages branches from the route, service
  types, and client error handling.
2026-09-04 13:00:12 +02:00
..
(app) feat: implement discount functionality in POS system 2026-09-03 12:19:21 +02:00
(auth) fix: preserve destination through the login redirect 2026-09-01 15:47:27 +02:00
(counter) feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
(mobile) fix: preserve destination through the login redirect 2026-09-01 15:47:27 +02:00
(print) feat: implement discount functionality in POS system 2026-09-03 12:19:21 +02:00
(tv) feat(tv-dashboard): enhance TV dashboard with driver stops and performance metrics 2026-08-19 10:16:49 +02:00
api fix(pos): fix uncaught 500 on checkout, allow overselling into negative stock 2026-09-04 13:00:12 +02:00
favicon.ico
globals.css feat: implement discount functionality in POS system 2026-09-03 12:19:21 +02:00
layout.tsx feat(counter): add standalone counter order PWA 2026-08-13 09:27:20 +02:00
offline.tsx
page.tsx