From b9af99aad6d6c0f849d96e040516bd89a968de30 Mon Sep 17 00:00:00 2001 From: El Mau Date: Sun, 12 Dec 2021 14:56:59 -0600 Subject: [PATCH] =?UTF-8?q?Cancelar=20con=20certificados=20solo=20en=20mod?= =?UTF-8?q?o=20depuraci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + source/app/controllers/utils.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 121d708..48f7cf4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ v 1.43.0 [12-Dic-2021] - Soporte para multi almacen. - Soporte para regenerar un ticket. - Soporte para movimientos entre almacenes + - Consulta en SAT para estatus de nĂ³mina * IMPORTANTE: diff --git a/source/app/controllers/utils.py b/source/app/controllers/utils.py index 0a8f147..c96ec60 100644 --- a/source/app/controllers/utils.py +++ b/source/app/controllers/utils.py @@ -682,7 +682,8 @@ def _cancel_with_cert(invoice, auth, certificado): def cancel_xml_sign(invoice, auth, certificado): - return _cancel_with_cert(invoice, auth, certificado) + if DEBUG: + return _cancel_with_cert(invoice, auth, certificado) cert = SATCertificate(certificado.cer, certificado.key_enc.encode()) pac = PACS[auth['pac']]()