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:
@@ -120,6 +120,8 @@ def montador_order(body: MontadorOrder, request: Request, user=Depends(can('asse
|
||||
kinds = set().union(*(MONTADOR_KINDS.get(r, set()) for r in roles_of(request.state.operator)))
|
||||
if body.kind not in kinds:
|
||||
raise HTTPException(403, 'Seu perfil não permite este tipo de pedido.')
|
||||
if body.batch and body.kind != 'interno':
|
||||
raise HTTPException(422, 'A lista colada vira sempre pedido Interno.')
|
||||
with db.connect() as c:
|
||||
if body.kind == 'interno':
|
||||
customer = internal_customer(c)
|
||||
@@ -148,7 +150,8 @@ def montador_order(body: MontadorOrder, request: Request, user=Depends(can('asse
|
||||
# The order's kind and the clothing order it travels with, on the
|
||||
# card and in Tiny's internal note.
|
||||
approved = {**approved, 'kind': body.kind,
|
||||
**({'with_order': body.with_order} if body.with_order else {})}
|
||||
**({'with_order': body.with_order} if body.with_order else {}),
|
||||
**({'batch': body.batch.model_dump()} if body.batch else {})}
|
||||
# A Venda's seller in Tiny is who assembled it, when their user
|
||||
# names one (Marcus, 2026-11-17, app/tiny.py order_payload).
|
||||
if body.kind == 'venda':
|
||||
|
||||
Reference in New Issue
Block a user