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:
@@ -174,7 +174,7 @@ def check_splits(items):
|
||||
|
||||
|
||||
class Item(StrictModel):
|
||||
mode: Literal['file','avulsa','uvfile','uv']
|
||||
mode: Literal['file','avulsa','uvfile','uv','premium']
|
||||
metres: Decimal = Field(gt=0, le=12000)
|
||||
grade: int = Field(ge=0, le=100, strict=True)
|
||||
uploads: list[UUID] = Field(min_length=1, max_length=20)
|
||||
@@ -205,7 +205,7 @@ class Item(StrictModel):
|
||||
raise ValueError('Only loose artwork is split into sheets')
|
||||
if [source.upload_id for source in self.production.sources] != self.uploads:
|
||||
raise ValueError('Production sources must match uploaded files in order')
|
||||
is_sheet = self.mode in ('file', 'uvfile')
|
||||
is_sheet = self.mode in ('file', 'uvfile', 'premium')
|
||||
# UV is 27 cm wide (Dropstar, 2026-10-28; it was 28,5).
|
||||
film_width = Decimal('27') if self.mode in ('uvfile', 'uv') else Decimal('57')
|
||||
if self.production.film_width_cm != film_width:
|
||||
@@ -396,7 +396,7 @@ class CouponNew(StrictModel):
|
||||
min_metres: Decimal | None = Field(default=None, gt=0, decimal_places=1)
|
||||
max_uses: int | None = Field(default=None, gt=0, strict=True)
|
||||
max_uses_per_customer: int | None = Field(default=None, gt=0, strict=True)
|
||||
product: Literal['file', 'avulsa', 'uvfile', 'uv'] | None = None
|
||||
product: Literal['file', 'avulsa', 'uvfile', 'uv', 'premium'] | None = None
|
||||
note: str = Field(default='', max_length=1000)
|
||||
|
||||
|
||||
@@ -409,7 +409,7 @@ class CouponUpdate(StrictModel):
|
||||
min_metres: Decimal | None = Field(default=None, gt=0, decimal_places=1)
|
||||
max_uses: int | None = Field(default=None, gt=0, strict=True)
|
||||
max_uses_per_customer: int | None = Field(default=None, gt=0, strict=True)
|
||||
product: Literal['file', 'avulsa', 'uvfile', 'uv'] | None = None
|
||||
product: Literal['file', 'avulsa', 'uvfile', 'uv', 'premium'] | None = None
|
||||
note: str | None = Field(default=None, max_length=1000)
|
||||
paused: bool | None = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user