Merge main into front-8
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> # Conflicts: # .gitea/workflows/deploy.yml
This commit is contained in:
@@ -108,6 +108,10 @@ def approve(c, row, items, reviewer):
|
||||
offer = catalog.current(c)['tratamento']
|
||||
offered = bool(offer['enabled'] and offer['unit_cents'] > 0)
|
||||
flags = grade_rules.triggered(grade_rules.current_rules(c), priced, offered)
|
||||
# A montador sheet (front 7a) is assembled by the team from Estampas/, not
|
||||
# sent by a customer: the treatment rule does not apply to it.
|
||||
if draft.get('montador'):
|
||||
flags.pop('tratamento', None)
|
||||
if 'tratamento' in flags and not draft.get('treatment'):
|
||||
raise HTTPException(422, grade_rules.treatment_message(flags['tratamento']))
|
||||
items_total = sum(i['total_cents'] for i in priced)
|
||||
|
||||
Reference in New Issue
Block a user