From 96b4244a5117e62f6bc176a49bf84900ea8c85f9 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Fri, 24 Nov 2017 10:41:28 -0600 Subject: [PATCH 1/2] Fix - agregar cuenta de banco --- source/app/models/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/app/models/main.py b/source/app/models/main.py index c927365..91ac870 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -1183,7 +1183,9 @@ class MovimientosBanco(BaseModel): def add(cls, values): ids = values.pop('ids', '') actualizar = False - if not 'saldo' in values: + if 'saldo' in values: + saldo = values['saldo'] + else: actualizar = True hora = values.pop('hora') values['fecha'] = '{}T{}'.format(values['fecha'][:10], hora) From 26dc5d3372dd16d3cac8cb5e56a88b115a278607 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Fri, 24 Nov 2017 10:47:15 -0600 Subject: [PATCH 2/2] Fix - subir plantillas --- source/app/controllers/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index bc4d446..438d082 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -1205,7 +1205,7 @@ def upload_file(rfc, opt, file_obj): if save_file(path, file_obj.file.read()): return {'status': 'server', 'name': file_obj.filename, 'ok': True} - return {'status': 'error'} + return {'status': 'error', 'ok': False} def cancel_cfdi(uuid, pk12, rfc, auth):