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:
@@ -55,6 +55,15 @@ class MovesTest(unittest.TestCase):
|
||||
self.assertEqual(CAPABILITIES['assemble'],
|
||||
{'superadmin', 'admin', 'gestao', 'vendedor', 'expedicao'})
|
||||
|
||||
def test_the_label_is_printed_by_these_profiles(self):
|
||||
# Marcus, 2026-11-10: the Revisor who releases the card, Expedição and
|
||||
# Gestão; the designer, the operator and the seller do not print it.
|
||||
self.assertEqual(CAPABILITIES['label'],
|
||||
{'superadmin', 'admin', 'gestao', 'revisor', 'expedicao'})
|
||||
for role in ROLES:
|
||||
self.assertEqual(role in CAPABILITIES['label'],
|
||||
role in ('superadmin', 'admin', 'gestao', 'revisor', 'expedicao'), role)
|
||||
|
||||
def test_a_column_is_ordered_by_whoever_takes_its_cards_forward(self):
|
||||
self.assertEqual([s for s in STATES if may_reorder('operador', s)], ['tra', 'imp'])
|
||||
self.assertEqual([s for s in STATES if may_reorder('designer', s)], ['rec', 'cor'])
|
||||
|
||||
Reference in New Issue
Block a user