feat: Premium built and switched off; default machine minimums (front 3, Marcus 10/11)

Premium (8 passadas, R$ 39,90/m, SKU DTFP.TX.100CM) is a fifth textile
ready-sheet product: priced on the server and the Site, a hidden fifth card,
a PREMIUM hot-folder class, its Tiny SKU, and a products row created
disabled by a migration until Dropstar says 'testado'. A machine with no
typed minimum now alerts at Dropstar's fixed minimums: 1 roll of film, 1 L
of each ink, 5 kg of powder.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-11 10:52:08 -03:00
parent e6197d6e40
commit a9a4b61d99
25 changed files with 202 additions and 49 deletions

View File

@@ -53,6 +53,8 @@ def sheet(mid: UUID, user=Depends(can('view'))):
'counters': machine_log.counters(c, mid),
'supplies': machine_log.supply_estimates(c, mid),
'minimums': minimums,
# The values the sheet shows when Gestão has not typed one.
'default_minimums': machine_log.DEFAULT_MINIMUMS,
'alerts': machine_log.alerts(c, mid),
'entries': [{**row, 'label': entry_label(row)} for row in entries],
'catalog': {'supplies': machine_log.SUPPLIES, 'parts': machine_log.PARTS,