Skip to content

Commit

Permalink
[FIX] Sempre mostra o valor zerado de IPI e aliquota caso não existir
Browse files Browse the repository at this point in the history
  • Loading branch information
danimaribeiro committed Nov 21, 2018
1 parent ee047ef commit f01405a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions pytrustnfe/nfe/danfe.py
Expand Up @@ -761,10 +761,8 @@ def produtos(self, oXML=None, el_det=None, index=0, max_index=0,
self.stringRight(nMr - 26.5, nLin, format_number(vICMS))
self.stringRight(nMr - 7.5, nLin, format_number(pICMS))

if vIPI:
self.stringRight(nMr - 14.5, nLin, format_number(vIPI))
if pIPI:
self.stringRight(nMr - 0.5, nLin, format_number(pIPI))
self.stringRight(nMr - 14.5, nLin, format_number(vIPI or '0.00'))
self.stringRight(nMr - 0.5, nLin, format_number(pIPI or '0.00'))

# Código Item
line_cod = nLin
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -2,7 +2,7 @@
from setuptools import setup, find_packages


VERSION = "1.0.22"
VERSION = "1.0.23"


setup(
Expand Down

0 comments on commit f01405a

Please sign in to comment.