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
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:
@@ -372,14 +372,24 @@ class TinyStatusTests(FakeTinyCase):
|
||||
self.assertNotIn('vendedor', plain)
|
||||
self.assertTrue(plain['observacoesInternas'].startswith('Site DTF · pago · '))
|
||||
# An order the team registered (D-35): its origin, and how it was paid
|
||||
# outside the site; Pix and card still name Tiny's forma de recebimento.
|
||||
# outside the site, each way named as Tiny's forma de recebimento.
|
||||
counter = order_payload({**PAID, 'origin': 'atendimento', 'payment': {'method': 'cash', 'outside': True}},
|
||||
1, thursday, shipping=self.tiny.shipping)
|
||||
self.assertTrue(counter['observacoesInternas'].startswith('Atendimento DTF · pago fora do site (dinheiro) · '))
|
||||
self.assertEqual(counter['pagamento'], {'categoria': {'id': CATEGORY}})
|
||||
self.assertEqual(counter['pagamento']['categoria'], {'id': CATEGORY})
|
||||
self.assertEqual(counter['pagamento']['formaRecebimento'], {'id': RECEIPT_METHODS['cash']})
|
||||
pix = order_payload({**PAID, 'origin': 'atendimento', 'payment': {'method': 'pix', 'outside': True}},
|
||||
1, thursday, shipping=self.tiny.shipping)
|
||||
self.assertEqual(pix['pagamento']['formaRecebimento'], {'id': RECEIPT_METHODS['pix']})
|
||||
self.assertEqual(pix['pagamento']['categoria'], {'id': CATEGORY})
|
||||
# Dinheiro and the customer's credit (CORREÇÃO DTF), Marcus's ids of 2026-10-27.
|
||||
self.assertEqual((RECEIPT_METHODS['cash'], RECEIPT_METHODS['credit']), (919478944, 977493654))
|
||||
# A Dropflow order goes in DTF DROPFLOW, not DTF SITE (D-21).
|
||||
batch = order_payload({**PAID, 'origin': 'dropflow', 'payment': {'method': 'credit', 'outside': True}},
|
||||
1, thursday, shipping=self.tiny.shipping)
|
||||
self.assertEqual(batch['pagamento']['categoria'], {'id': 987032506})
|
||||
self.assertEqual(batch['pagamento']['formaRecebimento'], {'id': 977493654})
|
||||
self.assertTrue(batch['observacoesInternas'].startswith('Dropflow DTF · pago fora do site (crédito do cliente) · '))
|
||||
|
||||
def test_the_order_is_tagged_kanbandtf_once(self):
|
||||
first = self.tiny.deliver('k1', PAID)
|
||||
|
||||
Reference in New Issue
Block a user