fix: the proof crops the finest stroke and closes the contact wait (0.1)

The browser records where the thinnest stroke sits in the assembled film;
the proof takes a 15 cm window around it instead of always the top. A free
proof no longer fails the layout's billed-metres check, and answering the
proof card clears "Aguardando contato" and ends its timer.
This commit is contained in:
Cauê Faleiros
2026-11-06 11:02:39 -03:00
parent d69e326125
commit 392e7da85b
12 changed files with 163 additions and 17 deletions

View File

@@ -85,6 +85,8 @@ def approve(c, row, items, reviewer):
**({'stroke_choice': original['stroke_choice']} if original.get('stroke_choice') else {}),
**({'stroke_choice_at': original['stroke_choice_at']}
if original.get('stroke_choice_at') else {}),
**({'proof_y_fraction': original['proof_y_fraction']}
if original.get('proof_y_fraction') is not None else {}),
**({'split': original['split']} if original.get('split') else {})})
bill_splits(priced)
metres = sum(Decimal(i['billed_metres']) for i in priced)