Fix issue #12
This commit is contained in:
parent
935483f7ee
commit
4006322f30
|
@ -6746,9 +6746,16 @@ class CfdiPagos(BaseModel):
|
|||
data = {'ok': False, 'msg': msg}
|
||||
return data
|
||||
|
||||
auth = Configuracion.get_({'fields': 'pac_auth'})
|
||||
# ~ auth = Configuracion.get_({'fields': 'pac_auth'})
|
||||
# ~ certificado = Certificado.get(Certificado.es_fiel==False)
|
||||
# ~ result = utils.cancel_xml_sign(last, auth, certificado)
|
||||
|
||||
pac = utils.get_pac_by_rfc(last.xml)
|
||||
auth = Configuracion.get_({'fields': 'auth_by_pac', 'pac': pac})
|
||||
|
||||
certificado = Certificado.get(Certificado.es_fiel==False)
|
||||
result = utils.cancel_xml_sign(last, auth, certificado)
|
||||
|
||||
if result['ok']:
|
||||
last.estatus = 'Cancelada'
|
||||
last.error = ''
|
||||
|
|
Loading…
Reference in New Issue