feat: the team registers an order paid outside the site, choosing its origin and payment (Dropstar's rule D-35)
Some checks failed
Build and deploy / Integration suite on a real stack (push) Failing after 3m26s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Has been skipped
Build and deploy / Validate source (push) Successful in 6s

On an approved quote in Cotacoes, Administrador, Gestao and Vendedor pick
the origin (Site, Dropflow, Atendimento) and how it was paid (Pix, cartao,
dinheiro, credito do cliente), neither preselected, with an optional note.
The price is the quote's, the Site's table price. The order is marked paid
outside, counts in Numeros, and goes to Tiny like a Site order with the
payment named in its internal note; a Dropflow order stays out of Tiny,
status updates and cancelling included, until its revenue category exists.
Auto-refresh waits while a register form on screen is half filled in.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 12:36:40 -03:00
parent 0319039328
commit c45e5f732b
12 changed files with 176 additions and 23 deletions

View File

@@ -471,10 +471,23 @@ Still to do (2026-10-26):
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
- An order paid outside the system is registered from its Site quote (D-35;
the user's answers of 2026-10-27): the team builds the cart on the Site as
a customer would (the art comes in through the Site, D-08), stops at the
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',
'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.
- 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,