feat: Dropstar's new flow: Arte conferida is the queue, Revisão and the Revisor
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 3m36s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m24s
All checks were successful
Build and deploy / Validate source (push) Successful in 9s
Build and deploy / Integration suite on a real stack (push) Successful in 3m36s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m24s
The board Dropstar drew on 2026-10-23: Arte recebida, Arte conferida, Imprimindo, Correção, Revisão, Finalizado. - Fila de impressão leaves the board: Arte conferida is the queue. It takes an order only with every item's final approved, keeps the finals as approved, orders its cards for printing and has the room's "Baixar" and the automatic folder. Orders that were in the queue move there once, with a line in their history - Revisão checks the printed sheet, and the new Revisor profile is the only one that sends an order to Finalizado (the superadmin too, for support) - who moves what, from the server (MOVES): the designer the artwork, asking for corrections and bringing the new art back; the operator Arte conferida to Imprimindo to Revisão; admin and gestão everything else, Correção included; a step back belongs to whoever makes the move it undoes - Tiny: Arte conferida is "Preparando envio" and Finalizado "Pronto para envio", for delivery orders too - Prova OK still comes before Finalizado; the customer's portal shows the new steps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
23
app/tiny.py
23
app/tiny.py
@@ -26,15 +26,18 @@ numero_ecommerce.
|
||||
|
||||
Customer notices: the client sends WhatsApp messages from Tiny's order
|
||||
situação (Tiny webhook -> their middleware -> n8n), on Aprovado, Pronto para
|
||||
envio (pickup only), Enviado and Entregue. With TINY_STATUS_UPDATES on, the
|
||||
Kanban moves the Tiny order along with it:
|
||||
envio, Enviado and Entregue. With TINY_STATUS_UPDATES on, the Kanban moves
|
||||
the Tiny order along with it (Dropstar's flow, 2026-10-23: two changes of
|
||||
situação, none for Imprimindo, Correção or Revisão):
|
||||
|
||||
paid (Arte recebida) -> Aprovada (the "approved" notice)
|
||||
Imprimindo -> Preparando envio (no notice)
|
||||
Finalizado, pickup -> Pronto para envio (the pickup notice)
|
||||
Finalizado, delivery -> unchanged: the team invoices and ships in Tiny
|
||||
Arte conferida (queue) -> Preparando envio (no notice)
|
||||
Finalizado -> Pronto para envio (pickup or delivery)
|
||||
cancelled -> Cancelada (no notice)
|
||||
|
||||
After Pronto para envio the order goes on in Tiny like any other: Enviada,
|
||||
Entregue.
|
||||
|
||||
An order someone already moved further in Tiny is never moved back, and an
|
||||
invoiced one is not cancelled here (its nota fiscal is cancelled in Tiny).
|
||||
Pickup orders carry the client's "retirar pessoalmente" forma de envio.
|
||||
@@ -759,13 +762,9 @@ class TinyOrders:
|
||||
return receipt
|
||||
|
||||
def ready(self, event_key, payload):
|
||||
"""A pickup order became ready: "Pronto para envio", which the client's
|
||||
notices turn into the pickup message. Shipped orders get "Enviada"
|
||||
once freight exists (1.2)."""
|
||||
base = {'provider': 'tiny', 'event_key': event_key}
|
||||
order = payload.get('order') or {}
|
||||
if (order.get('freight') or {}).get('service') != 'pickup':
|
||||
return {**base, 'status': 'not-applicable', 'event': 'ready'}
|
||||
"""The order reached Finalizado: "Pronto para envio", for pickup and
|
||||
delivery alike (Dropstar, 2026-10-23). From there the team ships it in
|
||||
Tiny as any other order."""
|
||||
return self.move(event_key, payload, PRONTO_ENVIO, (ABERTA, APROVADA, PREPARANDO, FATURADA, INCOMPLETA))
|
||||
|
||||
def move(self, event_key, payload, target, from_situacoes):
|
||||
|
||||
Reference in New Issue
Block a user