forked from elmau/empresa-libre
Move get status sat
This commit is contained in:
parent
05a51741b6
commit
3c574425eb
|
@ -1,3 +1,8 @@
|
||||||
|
v 1.40.1 [09-Feb-2021]
|
||||||
|
----------------------
|
||||||
|
- Fix #422
|
||||||
|
|
||||||
|
|
||||||
v 1.40.0 [05-ene-2021]
|
v 1.40.0 [05-ene-2021]
|
||||||
----------------------
|
----------------------
|
||||||
- Error: Al parsear XML en Python 3.9+
|
- Error: Al parsear XML en Python 3.9+
|
||||||
|
|
|
@ -430,9 +430,9 @@ def _get_uuid_fecha(xml):
|
||||||
return node.attrib['UUID'], node.attrib['FechaTimbrado']
|
return node.attrib['UUID'], node.attrib['FechaTimbrado']
|
||||||
|
|
||||||
|
|
||||||
def get_sat(xml):
|
# ~ def get_sat(xml):
|
||||||
from .pac import get_status_sat
|
# ~ from .pac import get_status_sat
|
||||||
return get_status_sat(xml)
|
# ~ return get_status_sat(xml)
|
||||||
|
|
||||||
|
|
||||||
class LIBO(object):
|
class LIBO(object):
|
||||||
|
|
|
@ -698,3 +698,9 @@ def cancel_xml_sign(invoice, auth, certificado):
|
||||||
data = {'ok': True, 'msg': msg, 'row': {'estatus': 'Cancelada'},
|
data = {'ok': True, 'msg': msg, 'row': {'estatus': 'Cancelada'},
|
||||||
'date': result['date'], 'acuse': result['acuse']}
|
'date': result['date'], 'acuse': result['acuse']}
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
def get_status_sat(xml):
|
||||||
|
|
||||||
|
|
||||||
|
return
|
||||||
|
|
|
@ -5155,7 +5155,7 @@ class Facturas(BaseModel):
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_status_sat(cls, id):
|
def get_status_sat(cls, id):
|
||||||
obj = Facturas.get(Facturas.id == id)
|
obj = Facturas.get(Facturas.id == id)
|
||||||
estatus_sat = util.get_sat(obj.xml)
|
estatus_sat = utils.get_status_sat(obj.xml)
|
||||||
if obj.estatus_sat != estatus_sat:
|
if obj.estatus_sat != estatus_sat:
|
||||||
obj.estatus_sat = estatus_sat
|
obj.estatus_sat = estatus_sat
|
||||||
obj.save()
|
obj.save()
|
||||||
|
|
|
@ -42,7 +42,7 @@ except ImportError:
|
||||||
|
|
||||||
|
|
||||||
DEBUG = DEBUG
|
DEBUG = DEBUG
|
||||||
VERSION = '1.40.0'
|
VERSION = '1.40.1'
|
||||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue