Skip to content

Commit

Permalink
[IMP] l10n_br_mdfe: fix tests - add qrcode tag
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Dec 10, 2024
1 parent ac25bd8 commit 1400473
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,8 @@
<infAdFisco>Documento emitido por: Marc Demo</infAdFisco>
</infAdic>
</infMDFe>
<infMDFeSupl>
<qrCodMDFe
>https://dfe-portal.svrs.rs.gov.br/mdfe/qrCode?chMDFe=35230905472475000102580200000602011208018449&amp;tpAmb=2</qrCodMDFe>
</infMDFeSupl>
</MDFe>
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,6 @@
<CIOT>123456789101</CIOT>
<CPF>99999999999</CPF>
</infCIOT>
<valePed>
<disp>
<CNPJForn>99999999999999</CNPJForn>
<CNPJPg>99999999999999</CNPJPg>
<nCompra>1234</nCompra>
<vValePed>5.00</vValePed>
<tpValePed>01</tpValePed>
</disp>
<categCombVeic>02</categCombVeic>
</valePed>
<infPag>
<xNome>Intel do Brasil</xNome>
<CNPJ>86144802000190</CNPJ>
Expand Down Expand Up @@ -124,4 +114,8 @@
<infAdFisco>Documento emitido por: Marc Demo</infAdFisco>
</infAdic>
</infMDFe>
<infMDFeSupl>
<qrCodMDFe
>https://dfe-portal.svrs.rs.gov.br/mdfe/qrCode?chMDFe=35230905472475000102580200000602071611554500&amp;tpAmb=2</qrCodMDFe>
</infMDFeSupl>
</MDFe>
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,8 @@
<infAdFisco>Documento emitido por: Marc Demo</infAdFisco>
</infAdic>
</infMDFe>
<infMDFeSupl>
<qrCodMDFe
>https://dfe-portal.svrs.rs.gov.br/mdfe/qrCode?chMDFe=35230905472475000102580200000602081550195716&amp;tpAmb=2</qrCodMDFe>
</infMDFeSupl>
</MDFe>
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,8 @@
<infAdFisco>Documento emitido por: Marc Demo</infAdFisco>
</infAdic>
</infMDFe>
<infMDFeSupl>
<qrCodMDFe
>https://dfe-portal.svrs.rs.gov.br/mdfe/qrCode?chMDFe=35231005472475000102580200000602161434590525&amp;tpAmb=2</qrCodMDFe>
</infMDFeSupl>
</MDFe>
29 changes: 16 additions & 13 deletions l10n_br_mdfe/tests/test_mdfe_serialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,22 @@ def prepare_modal_rodoviario_data(self, mdfe):
},
),
]
mdfe.mdfe30_disp = [
(
0,
0,
{
"mdfe30_CNPJForn": "99999999999999",
"mdfe30_CNPJPg": "99999999999999",
"mdfe30_nCompra": "1234",
"mdfe30_vValePed": 5,
"mdfe30_tpValePed": "01",
},
),
]
# TODO: no momento foi desativado a tag ValePed por
# ela mesmo vazia aparecer no xml

# mdfe.mdfe30_disp = [
# (
# 0,
# 0,
# {
# "mdfe30_CNPJForn": "99999999999999",
# "mdfe30_CNPJPg": "99999999999999",
# "mdfe30_nCompra": "1234",
# "mdfe30_vValePed": 5,
# "mdfe30_tpValePed": "01",
# },
# ),
# ]
mdfe.mdfe30_infPag = [
(
0,
Expand Down

0 comments on commit 1400473

Please sign in to comment.