feat(POS-010): completed feature

This commit is contained in:
chattie
2026-08-22 13:44:04 +02:00
parent 2c8a6f52ad
commit c089a4073a
11 changed files with 201 additions and 10 deletions

View File

@@ -0,0 +1,12 @@
# POS-010 — Architect
## Feature
POS Phase 1 ticket 010: Discount panel for POS.
## Objetivo
Backend: POST /pos/discounts/validate — validates discount against role (cashier max 50%, manager/admin 100%). UI: DiscountPanel React component (% or fixed).
## Diseño
- Validate endpoint checks unitPriceCents, discountCents, role
- DiscountPanel: % or fixed mode, shows preview before applying
- Discount sent to POST /pos/sales as discountCents per item