From bd6fb65a1b96bc532b52c2276ca4e9961836d31c Mon Sep 17 00:00:00 2001 From: El Mau Date: Thu, 10 Mar 2022 19:24:29 -0600 Subject: [PATCH 1/2] =?UTF-8?q?Fix=20-=20Problema=20al=20timbra=20n=C3=B3m?= =?UTF-8?q?ina=20con=20Comercio=20Digital?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/controllers/pacs/comerciodigital/comercio.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/app/controllers/pacs/comerciodigital/comercio.py b/source/app/controllers/pacs/comerciodigital/comercio.py index e930278..a06c5a7 100644 --- a/source/app/controllers/pacs/comerciodigital/comercio.py +++ b/source/app/controllers/pacs/comerciodigital/comercio.py @@ -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='') - return xml + # ~ tree = ET.fromstring(xml.encode()) + # ~ xml = ET.tostring(tree, + # ~ pretty_print=True, doctype='') + return xml.encode('utf-8') def stamp(self, cfdi, auth): # ~ if DEBUG or not auth: From 110d41cf6e1600f66731c4f8326ede3b396230b5 Mon Sep 17 00:00:00 2001 From: El Mau Date: Thu, 10 Mar 2022 20:25:51 -0600 Subject: [PATCH 2/2] Actualizar VERSION --- CHANGELOG.md | 5 +++++ VERSION | 2 +- source/app/settings.py | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5bcbed8..2bfb4a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +v 1.46.5 [10-Mar-2022] +---------------------- + - Error: Al timbrar nómina con Comercio Digital + + v 1.46.4 [18-Feb-2022] ---------------------- - Error: Issue #54 diff --git a/VERSION b/VERSION index 55c81d9..ac2d35e 100644 --- a/VERSION +++ b/VERSION @@ -1,2 +1,2 @@ -1.46.4 +1.46.5 diff --git a/source/app/settings.py b/source/app/settings.py index 42feafd..e97cec6 100644 --- a/source/app/settings.py +++ b/source/app/settings.py @@ -42,7 +42,7 @@ except ImportError: DEBUG = DEBUG -VERSION = '1.46.4' +VERSION = '1.46.5' EMAIL_SUPPORT = ('soporte@empresalibre.mx',) TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)