feat: Dropflow orders reach Tiny in DTF DROPFLOW, and dinheiro and customer credit name their forma de recebimento
All checks were successful
Build and deploy / Validate source (push) Successful in 13s
Build and deploy / Integration suite on a real stack (push) Successful in 4m40s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Successful in 1m27s

Marcus's ids of 2026-10-27: the revenue category DTF DROPFLOW (987032506)
for Dropflow orders, which no longer stay out of Tiny, and the formas de
recebimento Dinheiro (919478944) and CORREÇÃO DTF (977493654) for the
customer's credit, on orders the team registers as paid outside the site.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-27 15:38:33 -03:00
parent 5692804c6f
commit 258128de9f
5 changed files with 36 additions and 19 deletions

View File

@@ -63,10 +63,9 @@ OUTSIDE_METHODS = ('pix', 'card', 'cash', 'credit')
def in_tiny(order):
"""Whether the order goes to Tiny: not a test, and not a Dropflow order,
held until Dropstar names that channel's revenue category (it must not be
DTF SITE, their rules document says)."""
return not is_test(order) and order['origin'] != 'dropflow'
"""Whether the order goes to Tiny: every order but a test. A Dropflow
order goes in its own revenue category (app/tiny.py, CATEGORIES)."""
return not is_test(order)
# How long a file is kept while nothing has been paid for it. A cart's files