Cancelar con certificados solo en modo depuración

This commit is contained in:
El Mau 2021-12-12 14:56:59 -06:00
parent 43e932e445
commit b9af99aad6
2 changed files with 3 additions and 1 deletions

View File

@ -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:

View File

@ -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']]()