Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro na geração de NFE (XML) para produtos com código de barras cadastrado (cEAN e cEANtrib) #60

Closed
carlos-korovsky opened this issue Jan 6, 2017 · 1 comment
Labels

Comments

@carlos-korovsky
Copy link

carlos-korovsky commented Jan 6, 2017

Quando o produto possuí o código de barras cadastrado (EAN) o XML é gerado incorretamente:

<prod>
  <cProd>TL-WA901ND</cProd>
  <cEAN/>
  <cEAN>6935364051426</cEAN>
  <xProd>NOTA FISCAL EMITIDA EM AMBIENTE DE HOMOLOGACAO - SEM VALOR FISCAL</xProd>
  <NCM>85176277</NCM>
  <CFOP>5102</CFOP>
  <uCom>UN</uCom>
  <qCom>1.0</qCom>
  <vUnCom>279.00</vUnCom>
  <vProd>279.00</vProd>
  <cEANTrib/>
  <cEANTrib>6935364051426</cEANTrib>
  <uTrib>UN</uTrib>
  <qTrib>1.0</qTrib>
  <vUnTrib>279.00</vUnTrib>
  <indTot>1</indTot>
</prod>

Note a repetição das TAGs cEAN e cEANTrib (uma vazia e outra preenchida). Retirando o código EAN do cadastro do produto a emissão ocorre sem problemas. A tag xProd está sendo preenchida corretamente?

PyTrustNFe (0.1.18) - PyTrustNFe é uma biblioteca para envio de NF-e
INSTALLED: 0.1.18 (latest)

Repositórios odoo.git e odoo-brasil.git atualizados em 06/01/2017 às 13:00

@danimaribeiro
Copy link
Member

Fixed danimaribeiro/PyTrustNFe#20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants