diff --git a/l10n_br_account_payment_brcobranca/tests/data/boleto_teste_santander240.pdf b/l10n_br_account_payment_brcobranca/tests/data/boleto_teste_santander240.pdf new file mode 100644 index 000000000000..090d74ae1b16 Binary files /dev/null and b/l10n_br_account_payment_brcobranca/tests/data/boleto_teste_santander240.pdf differ diff --git a/l10n_br_account_payment_brcobranca/tests/data/boleto_teste_santander400.pdf b/l10n_br_account_payment_brcobranca/tests/data/boleto_teste_santander400.pdf new file mode 100644 index 000000000000..ee54c524c142 Binary files /dev/null and b/l10n_br_account_payment_brcobranca/tests/data/boleto_teste_santander400.pdf differ diff --git a/l10n_br_account_payment_brcobranca/tests/data/teste_remessa_santander240.REM b/l10n_br_account_payment_brcobranca/tests/data/teste_remessa_santander240.REM new file mode 100644 index 000000000000..0449bd6ba01c --- /dev/null +++ b/l10n_br_account_payment_brcobranca/tests/data/teste_remessa_santander240.REM @@ -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 diff --git a/l10n_br_account_payment_brcobranca/tests/data/teste_remessa_santander400.REM b/l10n_br_account_payment_brcobranca/tests/data/teste_remessa_santander400.REM new file mode 100644 index 000000000000..8f05aa361749 --- /dev/null +++ b/l10n_br_account_payment_brcobranca/tests/data/teste_remessa_santander400.REM @@ -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 diff --git a/l10n_br_account_payment_brcobranca/tests/test_payment_order.py b/l10n_br_account_payment_brcobranca/tests/test_payment_order.py index 6610ab5a61fd..4ed6456e5a60 100644 --- a/l10n_br_account_payment_brcobranca/tests/test_payment_order.py +++ b/l10n_br_account_payment_brcobranca/tests/test_payment_order.py @@ -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(