Skip to content

Commit

Permalink
[FIX] Corrigindo geração da tag IPI para outras CSTs
Browse files Browse the repository at this point in the history
  • Loading branch information
aricaldeira committed Mar 3, 2017
1 parent 38eb287 commit e0c8c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pysped/nfe/leiaute/nfe_110.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,7 @@ def __init__(self):


def get_xml(self):
if self.CST.valor in ('01', '02', '03', '04', '51', '52', '53', '54', '55'):
if not self.CST.valor.strip():
return ''

#
Expand Down
2 changes: 1 addition & 1 deletion pysped/nfe/leiaute/nfe_310.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ def __init__(self):
self.pIPI = TagDecimal(nome='pIPI', codigo='O13', tamanho=[1, 5, 1], decimais=[0, 4, 4], raiz='')

def get_xml(self):
if self.CST.valor not in ('01', '02', '03', '04', '50', '51', '52', '53', '54', '55'):
if not self.CST.valor.strip():
return ''

#
Expand Down

0 comments on commit e0c8c10

Please sign in to comment.