forked from elmau/empresa-libre
Cancelar con certificados solo en modo depuración
This commit is contained in:
parent
43e932e445
commit
b9af99aad6
|
@ -4,6 +4,7 @@ v 1.43.0 [12-Dic-2021]
|
||||||
- Soporte para multi almacen.
|
- Soporte para multi almacen.
|
||||||
- Soporte para regenerar un ticket.
|
- Soporte para regenerar un ticket.
|
||||||
- Soporte para movimientos entre almacenes
|
- Soporte para movimientos entre almacenes
|
||||||
|
- Consulta en SAT para estatus de nómina
|
||||||
|
|
||||||
* IMPORTANTE:
|
* IMPORTANTE:
|
||||||
|
|
||||||
|
|
|
@ -682,7 +682,8 @@ def _cancel_with_cert(invoice, auth, certificado):
|
||||||
|
|
||||||
|
|
||||||
def cancel_xml_sign(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())
|
cert = SATCertificate(certificado.cer, certificado.key_enc.encode())
|
||||||
pac = PACS[auth['pac']]()
|
pac = PACS[auth['pac']]()
|
||||||
|
|
Loading…
Reference in New Issue