feat: a pasted list in Montar, with the reference printed under each stamp and the skipped lines in the report (Rodada 5, C4)
One line per item, code size quantity reference. Lines with errors are listed with the line and the reason and mounted only after "Montar sem essas N linhas". A reference is drawn 3 mm high right under the stamp, with 1 cm to the next piece on that side; the list is always Interno and the Prumo report names the skipped lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -59,6 +59,15 @@ def report(order, uploads):
|
||||
lines = []
|
||||
if snapshot.get('proof_of'):
|
||||
lines.append(f'Prova do pedido #{snapshot["proof_of"]}')
|
||||
batch = snapshot.get('batch') or {}
|
||||
if batch:
|
||||
skipped = batch.get('skipped') or []
|
||||
summary = f'Lista colada: {batch.get("lines", 0)} linhas montadas'
|
||||
if skipped:
|
||||
summary += f', {len(skipped)} puladas'
|
||||
lines.append(summary)
|
||||
for row in skipped:
|
||||
lines.append(f'Linha {row.get("line")} pulada ({row.get("reason")}): {row.get("text")}')
|
||||
multi = len(items) > 1
|
||||
for index, item in enumerate(items):
|
||||
lead = f'Item {index + 1}: ' if multi else ''
|
||||
|
||||
Reference in New Issue
Block a user