diff --git a/app/tiny.py b/app/tiny.py index c1b1ceb..d85ed83 100644 --- a/app/tiny.py +++ b/app/tiny.py @@ -105,14 +105,13 @@ PICKUP_EXACT = 'retirar pessoalmente' # DropStar carrier its pickup orders name. RECEIPT_METHODS = {'pix': 919478952, 'card': 977460722} PICKUP_CARRIER = 761565838 -# Dropstar's answers (2026-10-21): the store's financial category "DUPLICADO -# DROP" (it goes in pagamento.categoria), no seller (the team links one in -# Tiny), and the marcador, added after the order is created: POST /pedidos -# does not take marcadores. Their corrections of the same day replace the -# category and the seller with new ones (DTF SITE, SITE DTF), sent by id once -# Dropstar creates them, and the marcador with SITE DTF: capitals, no accent, -# no extra space, the string Kondado reads for Power BI. -CATEGORY = 965775137 +# Dropstar's answers: the financial category "DTF SITE" (RECEITAS, id sent on +# 2026-10-26; it goes in pagamento.categoria, and replaced the store's +# "DUPLICADO DROP", 965775137), no seller (Tiny sets it from the contact, +# 2026-10-23), and the marcador SITE DTF, added after the order is created: +# POST /pedidos does not take marcadores. Capitals, no accent, no extra +# space: the string Kondado reads for Power BI. +CATEGORY = 986932924 TAG = 'SITE DTF' # Freight is the sender's (CIF), as on the store's orders. FREIGHT_PAID_BY = 'R' diff --git a/docs/CONTEXT.md b/docs/CONTEXT.md index 02ebf5d..296395b 100644 --- a/docs/CONTEXT.md +++ b/docs/CONTEXT.md @@ -435,10 +435,12 @@ Still to do (2026-10-26): - 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 Revisão, and only the superadmin can release them. -- Waiting on Dropstar: the DTF SITE category's numeric id (CATEGORY in - app/tiny.py is still DUPLICADO DROP), the internal rules document (D-16 to - D-23), and the montador spec (and which "histórico" Marcus means for its - orders). +- Waiting on Dropstar: the internal rules document (D-16 to D-23). Settled + on 2026-10-26: the DTF SITE category (986932924, CATEGORY in app/tiny.py), + the white spot also under the print PDF's footer (nothing to change here), + 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 factory computer (Chrome, Integrações > Pastas dos pedidos); check on the first print whether FlexiPRINT keeps reading the file in Arte conferida diff --git a/tests/test_tiny.py b/tests/test_tiny.py index c163df7..397f892 100644 --- a/tests/test_tiny.py +++ b/tests/test_tiny.py @@ -343,6 +343,7 @@ class TinyStatusTests(FakeTinyCase): def test_orders_are_filled_in_as_the_store_s_own(self): from datetime import date from app.tiny import CATEGORY, PICKUP_CARRIER, RECEIPT_METHODS + self.assertEqual(CATEGORY, 986932924) # DTF SITE, Dropstar 2026-10-26 thursday = date(2026, 9, 24) with mock.patch.dict(os.environ, {'FREIGHT_PRODUCTION_DAYS': '1'}): pickup = order_payload({**PICKUP, 'payment': {'method': 'pix'}}, 1, thursday, shipping=self.tiny.shipping)