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:
@@ -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,
|
||||
|
||||
@@ -65,8 +65,8 @@ def cursor_pair(first, second):
|
||||
return first is not None
|
||||
|
||||
|
||||
MODES = {'textil': {'file', 'avulsa'}, 'uv': {'uvfile', 'uv'},
|
||||
'folha': {'file', 'uvfile'}, 'avulsa': {'avulsa', 'uv'}}
|
||||
MODES = {'textil': {'file', 'avulsa', 'premium'}, 'uv': {'uvfile', 'uv'},
|
||||
'folha': {'file', 'uvfile', 'premium'}, 'avulsa': {'avulsa', 'uv'}}
|
||||
|
||||
|
||||
def like(text):
|
||||
|
||||
Reference in New Issue
Block a user