feat: rework register, opened by Gestao with a locked cause and authorized by an Administrador (Dropstar's rules D-02 to D-04)
All checks were successful
Build and deploy / Validate source (push) Successful in 10s
Build and deploy / Integration suite on a real stack (push) Successful in 3m27s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m2s

Gestao opens a rework from the order panel with its cause (falha de
impressao, perfil de cor, erro de tratamento, erro de pedido, or arte
aprovada pelo cliente, outside the goal), the metres redone and a note; the
cause never changes. An Administrador authorizes or declines it with a
reason, never one they opened, and only an authorized rework counts. The
order keeps who printed it. Numeros shows the metres redone per cause over
the film printed, against 0,4% per cause and 1,6% for the house, by who
printed, and the reworks waiting for authorization. Vendedor goes back to
viewing only (D-30): registering orders paid outside is Administrador and
Gestao.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 13:09:56 -03:00
parent babd9e327c
commit 5692804c6f
8 changed files with 282 additions and 17 deletions

View File

@@ -477,23 +477,33 @@ Still to do (2026-10-26):
payment step, and in the Kanban's Cotações, on the approved quote, picks the
origin and how it was paid (Pix, cartão, dinheiro, crédito do cliente),
neither preselected, with an optional note. The price is the quote's, the
Site's table price. Allowed to Administrador, Gestão and Vendedor (the
"enter" capability). The order's payment is `{'provider': 'manual',
Site's table price. Allowed to Administrador and Gestão (the "enter"
capability); not Vendedor, who only views the board (D-30). The order's payment is `{'provider': 'manual',
'method', 'note', 'operator'}`; it counts in Números like any paid order and
the customer gets the usual paid e-mail. An Atendimento (or Site) order
goes to Tiny like a Site one, its internal note saying "pago fora do site"
and how, Pix and card naming Tiny's forma de recebimento. A Dropflow order
stays out of Tiny, its status updates and cancelling included
(payments.in_tiny), until Dropstar names that channel's revenue category.
- Rework register (Dropstar's rules D-02 to D-04; the user's answers of
2026-10-27), dtf_local.reworks. Gestão opens it from the order panel's menu
("Abrir retrabalho") with its cause, the metres redone (the order's printed
metres to start) and a note: falha de impressão, perfil de cor, erro de
tratamento, erro de pedido, or arte aprovada pelo cliente (outside the
goal, D-04). The cause never changes after (D-03: there is no route for it).
An Administrador authorizes it or declines it with a reason, never one they
opened; the reprint is never held up, and only an authorized rework counts.
Who printed it (who last sent the order to Revisão) is kept, as the house's
rework enters the printer's pay. Números, "Retrabalho": per cause, the
metres redone over the film printed in the period (Por máquina), by the day
the rework was opened, against 0,4% per cause and 1,6% for the house; the
house's by who printed it; and the ones waiting for authorization. A card
with a rework carries a "Retrabalho" badge.
- Still open from the internal rules (docs received 2026-10-26): customer
credit as a payment the system keeps track of (today "crédito do cliente"
is only how a registered order was paid), 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
is only how a registered order was paid), and the Tiny revenue category
for Dropflow orders (not DTF SITE; its name and the origin value must be
the same word, the document says). 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
to clear), and a file's type comes from its first bytes (D-13, see the