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]
|
||||
----------------------
|
||||
- Error: Al parsear XML en Python 3.9+
|
||||
|
|
|
@ -430,9 +430,9 @@ def _get_uuid_fecha(xml):
|
|||
return node.attrib['UUID'], node.attrib['FechaTimbrado']
|
||||
|
||||
|
||||
def get_sat(xml):
|
||||
from .pac import get_status_sat
|
||||
return get_status_sat(xml)
|
||||
# ~ def get_sat(xml):
|
||||
# ~ from .pac import get_status_sat
|
||||
# ~ return get_status_sat(xml)
|
||||
|
||||
|
||||
class LIBO(object):
|
||||
|
|
|
@ -698,3 +698,9 @@ def cancel_xml_sign(invoice, auth, certificado):
|
|||
data = {'ok': True, 'msg': msg, 'row': {'estatus': 'Cancelada'},
|
||||
'date': result['date'], 'acuse': result['acuse']}
|
||||
return data
|
||||
|
||||
|
||||
def get_status_sat(xml):
|
||||
|
||||
|
||||
return
|
||||
|
|
|
@ -5155,7 +5155,7 @@ class Facturas(BaseModel):
|
|||
@classmethod
|
||||
def get_status_sat(cls, 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:
|
||||
obj.estatus_sat = estatus_sat
|
||||
obj.save()
|
||||
|
|
|
@ -42,7 +42,7 @@ except ImportError:
|
|||
|
||||
|
||||
DEBUG = DEBUG
|
||||
VERSION = '1.40.0'
|
||||
VERSION = '1.40.1'
|
||||
EMAIL_SUPPORT = ('soporte@empresalibre.mx',)
|
||||
TITLE_APP = '{} v{}'.format(TITLE_APP, VERSION)
|
||||
|
||||
|
|
Loading…
Reference in New Issue