Move get status sat

This commit is contained in:
Mauricio Baeza 2021-02-09 22:34:15 -06:00
parent 05a51741b6
commit 3c574425eb
6 changed files with 17 additions and 6 deletions

View File

@ -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+

View File

@ -1 +1 @@
1.40.0
1.40.1

View File

@ -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):

View File

@ -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

View File

@ -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()

View File

@ -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)