From 44da9c0b9160421d89481bbc362cdf02614cd71f Mon Sep 17 00:00:00 2001 From: Junior Tada Date: Tue, 26 Jan 2016 11:40:31 -0200 Subject: [PATCH] =?UTF-8?q?Assinatura=20de=20lote=20e=20situa=C3=A7=C3=A3o?= =?UTF-8?q?=20de=20lote=20com=20@param=20situacao=3DTrue/False?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/processamento/assinatura.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pynfe/processamento/assinatura.py b/pynfe/processamento/assinatura.py index 76888f4..a609e32 100644 --- a/pynfe/processamento/assinatura.py +++ b/pynfe/processamento/assinatura.py @@ -264,8 +264,11 @@ class AssinaturaA1(Assinatura): except Exception as e: raise e - def assinarConsultaLote(self, xml, retorna_string=True): - tag = 'ns1:ConsultarLoteRpsEnvio' + def assinarConsultaLote(self, xml, retorna_string=True, situacao=False): + if situacao: + tag = 'ns1:ConsultarSituacaoLoteRpsEnvio' + else: + tag = 'ns1:ConsultarLoteRpsEnvio' return self._assinar(xml, tag, retorna_string) def assinarConsultaRps(self, xml, retorna_string=True):