feat: Ajuste Fino priced per art, with the offer under each Prumo warning (Marcus 10/11, point 1)
The designer treatment becomes Ajuste Fino, priced per art with a batch band set in the Site tab (e.g. R$ 9,90, from 10 arts R$ 6,90). Under each art the Prumo warns about, the Site offers 'Quer que um designer resolva? Ajuste Fino'; the cart keeps 'Ajuste Fino em todas as artes'. The server counts the chosen arts, Tiny gets the line with that quantity, the card shows 'Ajuste Fino · N artes'. Old carts asking the treatment for the whole order keep working. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
With no rule nothing changes anywhere. An item triggers a rule when its grade
|
||||
is below the rule's `below`; the order's worst item decides. `aviso` flags the
|
||||
order for the designer; `tratamento` makes the designer's treatment required,
|
||||
but only while it is offered (enabled and priced above zero).
|
||||
order for the designer; `tratamento` makes Ajuste Fino required, but only while
|
||||
it is offered (enabled and priced above zero).
|
||||
"""
|
||||
|
||||
|
||||
@@ -29,6 +29,6 @@ def triggered(rules: dict, items, treatment_offered: bool) -> dict:
|
||||
|
||||
|
||||
def treatment_message(grade: int) -> str:
|
||||
"""The refusal the customer sees when the treatment is required."""
|
||||
return (f'Sua arte tem nota {grade}: para imprimir com qualidade, o tratamento '
|
||||
'pelo designer é obrigatório neste pedido.')
|
||||
"""The refusal the customer sees when Ajuste Fino is required."""
|
||||
return (f'Sua arte tem nota {grade}: para imprimir com qualidade, o Ajuste Fino '
|
||||
'é obrigatório neste pedido.')
|
||||
|
||||
Reference in New Issue
Block a user