feat: every order is born with its origin, shown, filtered and counted (Dropstar's rules D-21 and D-35)
All checks were successful
Build and deploy / Validate source (push) Successful in 4s
Build and deploy / Integration suite on a real stack (push) Successful in 3m21s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m1s

Orders carry site, dropflow or atendimento, required and with no default,
limited to the three. The Site's orders are marked site where they are
created; older orders became site. The Kanban shows the origin on each card
and in the order panel, filters by it, and Numeros has a Por origem table:
orders, metres, money and time from payment to Finalizado per way in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 11:39:08 -03:00
parent bba55a83f3
commit 0319039328
13 changed files with 98 additions and 19 deletions

View File

@@ -462,9 +462,24 @@ Still to do (2026-10-26):
money stays as the customer's credit in their financial control (D-15, the
Kanban's cancel text says so, nothing on the Site); the Kanban keeps
deleting Finalizado files after 30 days; the footer gets the white spot.
- Still open from the internal rules (docs received 2026-10-26): every
order's origin and a manual order entry in the Kanban (D-21, D-35; also how
orders paid with credit come in), and the rework register (D-02 to D-04).
- Every order has an origin (Dropstar's rules D-21 and D-35, 2026-10-26):
`site`, `dropflow` or `atendimento`, in dtf_local.orders.origin, required
and without a default (a default would become the origin of almost
everything, the document says), limited to the three by a check. The Site's
orders are marked `site` where they are created (app/payments.py); the
orders from before the column became `site`. The Kanban shows it on every
card and in the order panel, filters by it (Origem), and Números has a "Por
origem" table: orders, metres, money received and the median time from
payment to Finalizado for each way in, Aguardando contato left out.
- Still open from the internal rules (docs received 2026-10-26): the manual
order entry in the Kanban, where the origin must be chosen (D-35; also how
orders paid with credit come in, and the Dropflow batches until their API),
the Tiny revenue category for Dropflow orders (not DTF SITE; its name and
the origin value must be the same word, the document says), and the rework
register (D-02 to D-04: four causes, falha de impressão, perfil de cor,
erro de tratamento and erro de pedido; opened and classified by Mayana,
authorized by Thales or Alexandre, locked once opened; bad art the customer
approved does not count; goal 0,4% per cause, 1,6% in all).
Done 2026-10-27: the folders catch up on what passed while the Kanban
computer was off, time in "Aguardando contato" no longer counts in Números'
time figures (D-38; each wait is kept in dtf_local.contact_waits, from mark