Browse Source

[FIX] Compare the operation name in lower case

pull/174/head
Danimar Ribeiro 7 years ago
parent
commit
13a59b61b6
  1. 2
      pytrustnfe/nfe/__init__.py
  2. 2
      setup.py

2
pytrustnfe/nfe/__init__.py

@ -134,7 +134,7 @@ def _send(certificado, method, **kwargs):
port = next(iter(client.wsdl.port_types)) port = next(iter(client.wsdl.port_types))
first_operation = [x for x in iter( first_operation = [x for x in iter(
client.wsdl.port_types[port].operations) if "Zip" not in x][0]
client.wsdl.port_types[port].operations) if "zip" not in x.lower()][0]
namespaceNFe = xml.find(".//{http://www.portalfiscal.inf.br/nfe}NFe") namespaceNFe = xml.find(".//{http://www.portalfiscal.inf.br/nfe}NFe")
if namespaceNFe is not None: if namespaceNFe is not None:

2
setup.py

@ -2,7 +2,7 @@
from setuptools import setup, find_packages from setuptools import setup, find_packages
VERSION = "1.0.3"
VERSION = "1.0.4"
setup( setup(

Loading…
Cancel
Save