Iced Tea Base

Owner & Manager

Product detail: edit, deactivate, stock per Location, movement history (§13, D57)

STATUS: interactive demo — behavior shown here is the intended contract (nothing is saved)

Details

A new price applies to new cart lines only; past receipts keep the price they were sold at.

Stock by Location

  • Main Branch42 · low at 10
  • BGC Branch6 · low at 12 (override)

Movement history

WhenReasonChangeByRef / note
Today 12:41sale−2Ana R.Order #1043
Today 08:15restock+48Paolo S.Supplier DR 5512
Yesterday 21:40transfer_out−12Joel M.To BGC Branch · TR-0031
Yesterday 20:02waste−1Mia T.Spilled
Implementation notes for Cursor

Entities: Product (is_active, price, thresholds), ProductStock per Location (threshold override), InventoryMovement history (§13, D38, D57).

Key states: Edit (Owner/Manager); price change affects new lines only; Deactivate hides from POS/scan and keeps history; delete refused once history exists; history filtered by Location, reason and date.

Forbidden inventions: No hard delete of a product with history. No retroactive price change on past orders. Staff can't edit (they log movements only).

Governs: §13 (D57, D38), §5.1, §16 (product.updated / product.deactivated).