forked from elmau/empresa-libre
Fix issue #12
This commit is contained in:
parent
935483f7ee
commit
4006322f30
|
@ -6746,9 +6746,16 @@ class CfdiPagos(BaseModel):
|
||||||
data = {'ok': False, 'msg': msg}
|
data = {'ok': False, 'msg': msg}
|
||||||
return data
|
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)
|
certificado = Certificado.get(Certificado.es_fiel==False)
|
||||||
result = utils.cancel_xml_sign(last, auth, certificado)
|
result = utils.cancel_xml_sign(last, auth, certificado)
|
||||||
|
|
||||||
if result['ok']:
|
if result['ok']:
|
||||||
last.estatus = 'Cancelada'
|
last.estatus = 'Cancelada'
|
||||||
last.error = ''
|
last.error = ''
|
||||||
|
|
Loading…
Reference in New Issue