Skip to content

Commit e0c8c10

Browse files
committed
[FIX] Corrigindo geração da tag IPI para outras CSTs
1 parent 38eb287 commit e0c8c10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pysped/nfe/leiaute/nfe_110.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ def __init__(self):
800800

801801

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

806806
#

pysped/nfe/leiaute/nfe_310.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def __init__(self):
392392
self.pIPI = TagDecimal(nome='pIPI', codigo='O13', tamanho=[1, 5, 1], decimais=[0, 4, 4], raiz='')
393393

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

398398
#

0 commit comments

Comments
 (0)