feat: Site orders reach Tiny in the DTF SITE category
All checks were successful
Build and deploy / Validate source (push) Successful in 6s
Build and deploy / Integration suite on a real stack (push) Successful in 3m22s
Build and deploy / Secret scan and release gate (push) Successful in 5s
Build and deploy / Publish images (push) Successful in 1m1s

Dropstar sent the category's id on 2026-10-26: 986932924, under RECEITAS,
in place of the store's DUPLICADO DROP. The same day they settled that the
print PDF's footer also gets the white spot, which needs nothing here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Cauê Faleiros
2026-10-26 18:38:20 -03:00
parent 0088158dc0
commit 19b8b8c509
3 changed files with 14 additions and 12 deletions

View File

@@ -105,14 +105,13 @@ PICKUP_EXACT = 'retirar pessoalmente'
# DropStar carrier its pickup orders name. # DropStar carrier its pickup orders name.
RECEIPT_METHODS = {'pix': 919478952, 'card': 977460722} RECEIPT_METHODS = {'pix': 919478952, 'card': 977460722}
PICKUP_CARRIER = 761565838 PICKUP_CARRIER = 761565838
# Dropstar's answers (2026-10-21): the store's financial category "DUPLICADO # Dropstar's answers: the financial category "DTF SITE" (RECEITAS, id sent on
# DROP" (it goes in pagamento.categoria), no seller (the team links one in # 2026-10-26; it goes in pagamento.categoria, and replaced the store's
# Tiny), and the marcador, added after the order is created: POST /pedidos # "DUPLICADO DROP", 965775137), no seller (Tiny sets it from the contact,
# does not take marcadores. Their corrections of the same day replace the # 2026-10-23), and the marcador SITE DTF, added after the order is created:
# category and the seller with new ones (DTF SITE, SITE DTF), sent by id once # POST /pedidos does not take marcadores. Capitals, no accent, no extra
# Dropstar creates them, and the marcador with SITE DTF: capitals, no accent, # space: the string Kondado reads for Power BI.
# no extra space, the string Kondado reads for Power BI. CATEGORY = 986932924
CATEGORY = 965775137
TAG = 'SITE DTF' TAG = 'SITE DTF'
# Freight is the sender's (CIF), as on the store's orders. # Freight is the sender's (CIF), as on the store's orders.
FREIGHT_PAID_BY = 'R' FREIGHT_PAID_BY = 'R'

View File

@@ -435,10 +435,12 @@ Still to do (2026-10-26):
- Dropstar creates the Revisor users right after the redeploy that brings the - Dropstar creates the Revisor users right after the redeploy that brings the
new flow (the profile exists only from then): until then orders wait in new flow (the profile exists only from then): until then orders wait in
Revisão, and only the superadmin can release them. Revisão, and only the superadmin can release them.
- Waiting on Dropstar: the DTF SITE category's numeric id (CATEGORY in - Waiting on Dropstar: the internal rules document (D-16 to D-23). Settled
app/tiny.py is still DUPLICADO DROP), the internal rules document (D-16 to on 2026-10-26: the DTF SITE category (986932924, CATEGORY in app/tiny.py),
D-23), and the montador spec (and which "histórico" Marcus means for its the white spot also under the print PDF's footer (nothing to change here),
orders). and the montador's order format (customer, files, product, the batch with
the customer's ERP sale numbers, labels or pickup) with a record of each
batch, both for after launch.
- The three folders, once deployed: Marcus sets the main folder on the - The three folders, once deployed: Marcus sets the main folder on the
factory computer (Chrome, Integrações > Pastas dos pedidos); check on the factory computer (Chrome, Integrações > Pastas dos pedidos); check on the
first print whether FlexiPRINT keeps reading the file in Arte conferida first print whether FlexiPRINT keeps reading the file in Arte conferida

View File

@@ -343,6 +343,7 @@ class TinyStatusTests(FakeTinyCase):
def test_orders_are_filled_in_as_the_store_s_own(self): def test_orders_are_filled_in_as_the_store_s_own(self):
from datetime import date from datetime import date
from app.tiny import CATEGORY, PICKUP_CARRIER, RECEIPT_METHODS from app.tiny import CATEGORY, PICKUP_CARRIER, RECEIPT_METHODS
self.assertEqual(CATEGORY, 986932924) # DTF SITE, Dropstar 2026-10-26
thursday = date(2026, 9, 24) thursday = date(2026, 9, 24)
with mock.patch.dict(os.environ, {'FREIGHT_PRODUCTION_DAYS': '1'}): with mock.patch.dict(os.environ, {'FREIGHT_PRODUCTION_DAYS': '1'}):
pickup = order_payload({**PICKUP, 'payment': {'method': 'pix'}}, 1, thursday, shipping=self.tiny.shipping) pickup = order_payload({**PICKUP, 'payment': {'method': 'pix'}}, 1, thursday, shipping=self.tiny.shipping)