feat(POS-010): completed feature
This commit is contained in:
12
work/artifacts/POS-010/architect.md
Normal file
12
work/artifacts/POS-010/architect.md
Normal 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
|
||||
Reference in New Issue
Block a user