Skip to content

Commit

Permalink
[RFC] l10n_bt_cte: tests refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelsavegnago committed Nov 25, 2024
1 parent 2d58c64 commit 386f23d
Show file tree
Hide file tree
Showing 10 changed files with 1,006 additions and 90 deletions.
383 changes: 348 additions & 35 deletions l10n_br_cte/demo/fiscal_document_demo.xml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CTe xmlns="http://www.portalfiscal.inf.br/cte">
<infCte versao="4.00" Id="CTe35240708318053000167570010000000311040445899">
<infCte versao="4.00" Id="CTe35240759594315000157570010000057311040445890">
<ide>
<cUF>35</cUF>
<cCT>57000111</cCT>
<CFOP>5352</CFOP>
<natOp>Venda</natOp>
<mod>57</mod>
<serie>1</serie>
<nCT>574</nCT>
<nCT>573</nCT>
<dhEmi>2020-01-01T12:00:00+01:00</dhEmi>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>9</cDV>
<cDV>0</cDV>
<tpAmb>2</tpAmb>
<tpCTe>0</tpCTe>
<procEmi>0</procEmi>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CTe xmlns="http://www.portalfiscal.inf.br/cte">
<infCte versao="4.00" Id="CTe35240708318053000167570010000000311040645898">
<infCte versao="4.00" Id="CTe35240781583054000129570010000057311040645894">
<ide>
<cUF>35</cUF>
<cCT>57000111</cCT>
Expand All @@ -12,7 +12,7 @@
<dhEmi>2020-01-01T12:00:00+01:00</dhEmi>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>8</cDV>
<cDV>4</cDV>
<tpAmb>2</tpAmb>
<tpCTe>0</tpCTe>
<procEmi>0</procEmi>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CTe xmlns="http://www.portalfiscal.inf.br/cte">
<infCte versao="4.00" Id="CTe35240608318053000167570010000000311040645894">
<infCte versao="4.00" Id="CTe35240781583054000129570010000057411040645890">
<ide>
<cUF>35</cUF>
<cCT>57000111</cCT>
<CFOP>5352</CFOP>
<natOp>Venda</natOp>
<mod>57</mod>
<serie>1</serie>
<nCT>575</nCT>
<nCT>574</nCT>
<dhEmi>2020-01-01T12:00:00+01:00</dhEmi>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>4</cDV>
<cDV>0</cDV>
<tpAmb>2</tpAmb>
<tpCTe>0</tpCTe>
<procEmi>0</procEmi>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,196 @@
<?xml version="1.0" encoding="UTF-8" ?>
<CTe xmlns="http://www.portalfiscal.inf.br/cte">
<infCte versao="4.00" Id="CTe35240781583054000129570010000057511040645897">
<ide>
<cUF>35</cUF>
<cCT>57000111</cCT>
<CFOP>5352</CFOP>
<natOp>Venda</natOp>
<mod>57</mod>
<serie>1</serie>
<nCT>575</nCT>
<dhEmi>2020-01-01T12:00:00+01:00</dhEmi>
<tpImp>1</tpImp>
<tpEmis>1</tpEmis>
<cDV>7</cDV>
<tpAmb>2</tpAmb>
<tpCTe>0</tpCTe>
<procEmi>0</procEmi>
<verProc>Odoo Brasil OCA v14</verProc>
<cMunEnv>3550308</cMunEnv>
<xMunEnv>São Paulo</xMunEnv>
<UFEnv>SP</UFEnv>
<modal>03</modal>
<tpServ>0</tpServ>
<cMunIni>3550308</cMunIni>
<xMunIni>São Paulo</xMunIni>
<UFIni>SP</UFIni>
<cMunFim>1302603</cMunFim>
<xMunFim>Manaus</xMunFim>
<UFFim>AM</UFFim>
<retira>1</retira>
<indIEToma>1</indIEToma>
<toma3>
<toma>3</toma>
</toma3>
</ide>
<compl>
<xObs>Documento emitido por: Marc Demo</xObs>
<ObsFisco xCampo="Usuário emissor">
<xTexto>Documento emitido por: Marc Demo</xTexto>
</ObsFisco>
</compl>
<emit>
<CNPJ>81583054000129</CNPJ>
<IE>078016350838</IE>
<xNome>Empresa Lucro Presumido Ltda</xNome>
<xFant>Empresa Lucro Presumido</xFant>
<enderEmit>
<xLgr>Avenida Paulista</xLgr>
<nro>1</nro>
<xBairro>Bela Vista</xBairro>
<cMun>3550308</cMun>
<xMun>São Paulo</xMun>
<CEP>01311000</CEP>
<UF>SP</UF>
<fone>551199999999</fone>
</enderEmit>
<CRT>3</CRT>
</emit>
<rem>
<CNPJ>12046835000161</CNPJ>
<IE>887273429152</IE>
<xNome>CTE EMITIDO EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome>
<xFant>Cliente 2 -SP - Simples Nacional</xFant>
<fone>1177777777</fone>
<enderReme>
<xLgr>Avenida Doutor Chucri Zaidan</xLgr>
<nro>950</nro>
<xBairro>Vila Cordeiro</xBairro>
<cMun>3550308</cMun>
<xMun>São Paulo</xMun>
<CEP>04583110</CEP>
<UF>SP</UF>
<cPais>1058</cPais>
<xPais>Brasil</xPais>
</enderReme>
<email>[email protected]</email>
</rem>
<exped>
<CNPJ>12046835000161</CNPJ>
<IE>887273429152</IE>
<xNome>CTE EMITIDO EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome>
<fone>1177777777</fone>
<enderExped>
<xLgr>Avenida Doutor Chucri Zaidan</xLgr>
<nro>950</nro>
<xBairro>Vila Cordeiro</xBairro>
<cMun>3550308</cMun>
<xMun>São Paulo</xMun>
<CEP>04583110</CEP>
<UF>SP</UF>
<cPais>1058</cPais>
<xPais>Brasil</xPais>
</enderExped>
<email>[email protected]</email>
</exped>
<receb>
<CNPJ>84148732000113</CNPJ>
<IE>095693211</IE>
<xNome>CTE EMITIDO EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome>
<fone>9221458888</fone>
<enderReceb>
<xLgr>Avenida Javari</xLgr>
<nro>s/n</nro>
<xCpl>Lote 9.45/15E</xCpl>
<xBairro>Distrito Industrial</xBairro>
<cMun>1302603</cMun>
<xMun>Manaus</xMun>
<CEP>69075110</CEP>
<UF>AM</UF>
<cPais>1058</cPais>
<xPais>Brasil</xPais>
</enderReceb>
<email>[email protected]</email>
</receb>
<dest>
<CNPJ>46081676000158</CNPJ>
<IE>782175040</IE>
<xNome>CTE EMITIDO EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xNome>
<fone>9221459999</fone>
<ISUF>101362102</ISUF>
<enderDest>
<xLgr>Avenida Javari</xLgr>
<nro>s/n</nro>
<xCpl>Lote 8.45/30E</xCpl>
<xBairro>Distrito Industrial</xBairro>
<cMun>1302603</cMun>
<xMun>Manaus</xMun>
<CEP>69075110</CEP>
<UF>AM</UF>
<cPais>1058</cPais>
<xPais>Brasil</xPais>
</enderDest>
<email>[email protected]</email>
</dest>
<vPrest>
<vTPrest>47.00</vTPrest>
<vRec>47.00</vRec>
<Comp>
<xNome>Frete</xNome>
<vComp>47.00</vComp>
</Comp>
</vPrest>
<imp>
<ICMS>
<ICMS00>
<CST>00</CST>
<vBC>47.00</vBC>
<pICMS>18.00</pICMS>
<vICMS>8.46</vICMS>
</ICMS00>
</ICMS>
</imp>
<infCTeNorm>
<infCarga>
<vCarga>1000.00</vCarga>
<proPred>XYZ Product</proPred>
<xOutCat>Other Product Data</xOutCat>
<infQ>
<cUnid>00</cUnid>
<tpMed>Volume</tpMed>
<qCarga>1000.0000</qCarga>
</infQ>
<infQ>
<cUnid>01</cUnid>
<tpMed>Peso Bruto</tpMed>
<qCarga>500.0000</qCarga>
</infQ>
<infQ>
<cUnid>03</cUnid>
<tpMed>Unidade</tpMed>
<qCarga>2.0000</qCarga>
</infQ>
<vCargaAverb>1000.00</vCargaAverb>
</infCarga>
<infDoc />
<infModal versaoModal="4.00">
<aquav>
<vPrest>47.00</vPrest>
<vAFRMM>1200.00</vAFRMM>
<xNavio>Navio Mercante 123</xNavio>
<balsa>
<xBalsa>Balsa A</xBalsa>
</balsa>
<balsa>
<xBalsa>Balsa B</xBalsa>
</balsa>
<nViag>Viagem001</nViag>
<direc>S</direc>
<irin>IRIN12345</irin>
<tpNav>0</tpNav>
</aquav>
</infModal>
</infCTeNorm>
</infCte>
</CTe>
Loading

0 comments on commit 386f23d

Please sign in to comment.