feat: the team registers an order paid outside the site, choosing its origin and payment (Dropstar's rule D-35)
Some checks failed
Build and deploy / Integration suite on a real stack (push) Failing after 3m26s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Has been skipped
Build and deploy / Validate source (push) Successful in 6s
Some checks failed
Build and deploy / Integration suite on a real stack (push) Failing after 3m26s
Build and deploy / Secret scan and release gate (push) Successful in 7s
Build and deploy / Publish images (push) Has been skipped
Build and deploy / Validate source (push) Successful in 6s
On an approved quote in Cotacoes, Administrador, Gestao and Vendedor pick the origin (Site, Dropflow, Atendimento) and how it was paid (Pix, cartao, dinheiro, credito do cliente), neither preselected, with an optional note. The price is the quote's, the Site's table price. The order is marked paid outside, counts in Numeros, and goes to Tiny like a Site order with the payment named in its internal note; a Dropflow order stays out of Tiny, status updates and cancelling included, until its revenue category exists. Auto-refresh waits while a register form on screen is half filled in. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -370,6 +370,16 @@ class TinyStatusTests(FakeTinyCase):
|
||||
self.assertNotIn('transportador', plain)
|
||||
self.assertEqual(plain['pagamento'], {'categoria': {'id': CATEGORY}})
|
||||
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.
|
||||
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}})
|
||||
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']})
|
||||
|
||||
def test_the_order_is_tagged_kanbandtf_once(self):
|
||||
first = self.tiny.deliver('k1', PAID)
|
||||
|
||||
Reference in New Issue
Block a user