Browse Source

[FIX] Product description overwriting ncm

pull/223/head
marinaGD 7 years ago
parent
commit
40200a09ca
  1. 4
      pytrustnfe/nfe/danfe.py

4
pytrustnfe/nfe/danfe.py

@ -170,9 +170,9 @@ class danfe(object):
infAdProd = item.find( infAdProd = item.find(
".//{http://www.portalfiscal.inf.br/nfe}infAdProd") ".//{http://www.portalfiscal.inf.br/nfe}infAdProd")
list_ = wrap(tagtext(oNode=el_prod, cTag='xProd'), 56)
list_ = wrap(tagtext(oNode=el_prod, cTag='xProd'), 50)
if infAdProd is not None: if infAdProd is not None:
list_.extend(wrap(infAdProd.text, 56))
list_.extend(wrap(infAdProd.text, 50))
list_desc.append(list_) list_desc.append(list_)
list_cProd = wrap(tagtext(oNode=el_prod, cTag='cProd'), 14) list_cProd = wrap(tagtext(oNode=el_prod, cTag='cProd'), 14)

Loading…
Cancel
Save