Skip to content

Commit

Permalink
[IMP] l10n_br_account_payment_brcobranca: Tests for CNAB Santader 400…
Browse files Browse the repository at this point in the history
… and 240.
  • Loading branch information
mbcosta committed Feb 27, 2024
1 parent 07d4073 commit f03e8f7
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
03300000 2097231608000169123456789012345 SUA EMPRESA LTDA BANCO SANTANDER 126022024 000001040
03300011R01 030 2097231608000169 123456789012345 SUA EMPRESA LTDA 000000012602202400000000
0330001300001P 010707200000133310000013331 0000000000019512 TESTE SANTANDER2602202400000000003000000000 02N26022024300000000000000000000000026022024000000000000300000000000000000000000000000000TESTE SANTANDER CNAB24001000300000
0330001300002Q 012011034414000158AKRETION LTDA AVENIDA PAULISTA 807 CENTRO 01311915SAO PAULO SP0000000000000000 000000000000
0330001300003R 01000000000000000000000000000000000000000000000000000000000000000000000000
0330001300004P 010707200000133310000013331 0000000000027512 TESTE SANTANDER3103202400000000007000000000 02N26022024300000000000000000000000031032024000000000000700000000000000000000000000000000TESTE SANTANDER CNAB24002000300000
0330001300005Q 012011034414000158AKRETION LTDA AVENIDA PAULISTA 807 CENTRO 01311915SAO PAULO SP0000000000000000 000000000000
0330001300006R 01000000000000000000000000000000000000000000000000000000000000000000000000
03300015 000008
03399999 000001000010
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
01REMESSA01COBRANCA 12345678901234567890SUA EMPRESA LTDA 033SANTANDER 2602240000000000000000 058000001
1029723160800016912345678901234567890TESTE SANTANDER CNAB400/0100000019000000 00000000000000000000 000000501TESTE SANTANDER CNAB400/0126022400000000300000330000001N260224000000000000000002602240000000000300000000000000000000000000000211034414000158AKRETION LTDA AVENIDA PAULISTA 807 CENTRO 01311915SAO PAULO SP 00 000002
1029723160800016912345678901234567890TESTE SANTANDER CNAB400/0200000027000000 00000000000000000000 000000501TESTE SANTANDER CNAB400/0231032400000000700000330000001N260224000000000000000003103240000000000700000000000000000000000000000211034414000158AKRETION LTDA AVENIDA PAULISTA 807 CENTRO 01311915SAO PAULO SP 00 000003
9000004000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004
22 changes: 22 additions & 0 deletions l10n_br_account_payment_brcobranca/tests/test_payment_order.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,28 @@ def test_banco_ailos_cnab_240(self):
"teste_remessa_ailos240.REM",
)

def test_banco_santander_cnab_400(self):
"""Teste Boleto e Remessa Banco Santander - CNAB 400"""
invoice_santander_cnab_400 = self.env.ref(
"l10n_br_account_payment_order.demo_invoice_payment_order_santander_cnab400"
)
self._run_boleto_remessa(
invoice_santander_cnab_400,
"boleto_teste_santander_cnab400.pdf",
"teste_remessa_santander400.REM",
)

def test_banco_santander_cnab_240(self):
"""Teste Boleto e Remessa Banco Santander - CNAB 240"""
invoice_santander_cnab_240 = self.env.ref(
"l10n_br_account_payment_order.demo_invoice_payment_order_santander_cnab240"
)
self._run_boleto_remessa(
invoice_santander_cnab_240,
"boleto_teste_santander_cnab240.pdf",
"teste_remessa_santander240.REM",
)

def test_bank_cnab_not_implement_brcobranca(self):
"""Test Bank CNAB not implemented in BRCobranca."""
invoice = self.env.ref(
Expand Down

0 comments on commit f03e8f7

Please sign in to comment.