458 B
458 B
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