feat: Ajuste Fino Redesenho in the cart (Marcus 12/11, slice R1)
Under each art the Prumo warns about, the customer can choose Ajuste Fino or Ajuste Fino Redesenho (vectorize or redraw, per art, +48 h, no batch price). It is a disabled product until Gestão prices it in the Site tab; the server charges it per chosen art, Tiny gets a DTFIMP.AJF.RED line and two more business days, the card shows 'Redesenho · N artes' and the designer gate applies. The preview loop is slice R2. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -95,8 +95,11 @@ def toggle_product(product: str, body: SiteProductToggle, user=Depends(can('mana
|
||||
def schedule_price(product: str, body: SitePriceNew, user=Depends(can('manage'))):
|
||||
if product not in catalog.PRODUCTS:
|
||||
raise HTTPException(404, 'Produto não encontrado.')
|
||||
if product != 'tratamento' and body.unit_cents <= 0:
|
||||
if product not in ('tratamento', 'redesenho') and body.unit_cents <= 0:
|
||||
raise HTTPException(422, 'O preço precisa ser maior que zero.')
|
||||
# Redesenho is one price per art: its batch band belongs to the basic only.
|
||||
if product == 'redesenho' and body.bands:
|
||||
raise HTTPException(422, 'O Redesenho não tem faixas de preço.')
|
||||
bands = checked_bands(product, body.bands)
|
||||
now = datetime.now(timezone.utc)
|
||||
starts_at = body.starts_at or now
|
||||
|
||||
Reference in New Issue
Block a user