From e0c8c1085d53b3c23a583f40644e8432c404e3b8 Mon Sep 17 00:00:00 2001 From: Ari Caldeira Date: Fri, 3 Mar 2017 10:54:49 -0300 Subject: [PATCH] =?UTF-8?q?[FIX]=20Corrigindo=20gera=C3=A7=C3=A3o=20da=20t?= =?UTF-8?q?ag=20IPI=20para=20outras=20CSTs?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pysped/nfe/leiaute/nfe_110.py | 2 +- pysped/nfe/leiaute/nfe_310.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pysped/nfe/leiaute/nfe_110.py b/pysped/nfe/leiaute/nfe_110.py index bc67412f..97b9fa7e 100644 --- a/pysped/nfe/leiaute/nfe_110.py +++ b/pysped/nfe/leiaute/nfe_110.py @@ -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 '' # diff --git a/pysped/nfe/leiaute/nfe_310.py b/pysped/nfe/leiaute/nfe_310.py index c6fadfa7..e55f184f 100644 --- a/pysped/nfe/leiaute/nfe_310.py +++ b/pysped/nfe/leiaute/nfe_310.py @@ -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 '' #