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:
@@ -2,7 +2,7 @@
|
||||
|
||||
Dropstar, 2026-11-05 (Fase 2, front 8): the products and their prices leave the
|
||||
code and live in the database, with a start date and a history. `PRICES` in
|
||||
app/core/pricing.py stays as the seed and the fallback for the four modes;
|
||||
app/core/pricing.py stays as the seed and the fallback for the five modes;
|
||||
`treatment_cents()` stays as the fallback for `tratamento`. A price row is never
|
||||
changed or deleted once its start date has passed (the table is the history),
|
||||
and an approved quote keeps the price it was approved with.
|
||||
@@ -19,8 +19,8 @@ from decimal import Decimal
|
||||
|
||||
from .core import pricing
|
||||
|
||||
# The four modes sold by the metre, and the treatment sold per order.
|
||||
MODES = ('file', 'avulsa', 'uvfile', 'uv')
|
||||
# The modes sold by the metre, and the treatment sold per order.
|
||||
MODES = ('file', 'avulsa', 'uvfile', 'uv', 'premium')
|
||||
PRODUCTS = (*MODES, 'tratamento')
|
||||
|
||||
TITLES = {
|
||||
@@ -28,10 +28,11 @@ TITLES = {
|
||||
'avulsa': 'Têxtil artes avulsas',
|
||||
'uvfile': 'UV folha pronta',
|
||||
'uv': 'UV artes avulsas',
|
||||
'premium': 'Têxtil Premium · 8 passadas',
|
||||
'tratamento': 'Tratamento pelo designer',
|
||||
}
|
||||
UNITS = {'file': 'metro', 'avulsa': 'metro', 'uvfile': 'metro', 'uv': 'metro',
|
||||
'tratamento': 'pedido'}
|
||||
'premium': 'metro', 'tratamento': 'pedido'}
|
||||
|
||||
|
||||
def fallback_cents(product: str) -> int:
|
||||
|
||||
Reference in New Issue
Block a user