Files
mercadodevida/work/artifacts/POS-010/architect.md
2026-08-22 13:44:04 +02:00

13 lines
458 B
Markdown

# 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