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
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:
15
app/tiny.py
15
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'
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user