feat: the 10x15 label at Finalizado (Marcus 10/11, point 10)

When an order reaches Finalizado, the Kanban on the computer that opted in
(Integrações > Etiqueta 10x15) prints a 10x15 label rendered by the server:
the Tiny order number in large type (DTF-<n> when there is none), customer,
DTF · N folhas · X m, the delivery line, date and time, the Revisor and a
QR with the number. One automatic print per order (label_prints, claimed
once); Revisor, Expedição, Gestão and the administrators can reprint.
Chrome with --kiosk-printing prints without the dialog.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-11-11 11:32:27 -03:00
parent e6197d6e40
commit 223bd61798
16 changed files with 593 additions and 12 deletions

View File

@@ -75,7 +75,7 @@ def run():
# The new profile creates through the users API and reads the table.
shipping = signed_in(emails['expedicao'])
me = shipping.call('/operator/me')
assert me['role'] == 'expedicao' and me['can'] == ['assemble', 'view'], me
assert me['role'] == 'expedicao' and me['can'] == ['assemble', 'label', 'view'], me
read = shipping.call('/operator/stamp-sizes')['sizes']
assert [(row['letter'], float(row['width_cm'])) for row in read] == table, read
# The designer does not assemble: no reading the table.