Fix - Problema al timbra nómina con Comercio Digital

This commit is contained in:
El Mau 2022-03-10 19:24:29 -06:00
parent 670aca3886
commit bd6fb65a1b
1 changed files with 4 additions and 4 deletions

View File

@ -126,10 +126,10 @@ class PACComercioDigital(object):
"""
Comercio Digital solo soporta la declaración con doble comilla
"""
tree = ET.fromstring(xml.encode())
xml = ET.tostring(tree,
pretty_print=True, doctype='<?xml version="1.0" encoding="utf-8"?>')
return xml
# ~ tree = ET.fromstring(xml.encode())
# ~ xml = ET.tostring(tree,
# ~ pretty_print=True, doctype='<?xml version="1.0" encoding="utf-8"?>')
return xml.encode('utf-8')
def stamp(self, cfdi, auth):
# ~ if DEBUG or not auth: