From 3949a89824cb3474b099457413d1617e3826f7d3 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Wed, 20 Dec 2017 18:02:05 -0600 Subject: [PATCH 1/2] Fix - al importar de Factura Libre --- source/app/controllers/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index 035e88f..505bb4f 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -397,7 +397,6 @@ class Certificado(object): print ('\n', result) return data - if not DEBUG: if not rfc == session_rfc: self.error = 'El RFC del certificado no corresponde.' @@ -1755,6 +1754,7 @@ class ImportFacturaLibre(object): tasas = { '16': 0.16, + '16.00': 0.16, '11': 0.11, '-10': 0.10, '0': 0.0, @@ -1861,6 +1861,9 @@ class ImportFacturaLibre(object): for row in rows: new = {t: row[s] for s, t in fields} new['slug'] = to_slug(new['nombre']) + new['fecha_alta'] = str(parser.parse(new['fecha_alta'])) + for _, f in fields: + new[f] = new[f] or '' if new['es_extranjero']: new['tipo_persona'] = 4 elif new['rfc'] == 'XAXX010101000': From c5da06ec314bc359d68376509e505699931b8bb9 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Wed, 20 Dec 2017 22:01:13 -0600 Subject: [PATCH 2/2] =?UTF-8?q?Actualizar=20archivos=20de=20configuraci?= =?UTF-8?q?=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/conf.py.example | 2 +- source/app/main_linux.ini | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/source/app/conf.py.example b/source/app/conf.py.example index 968da07..ca97694 100644 --- a/source/app/conf.py.example +++ b/source/app/conf.py.example @@ -10,7 +10,7 @@ DEFAULT_PASSWORD = 'blades3.3' #~ Establece una ruta accesible para el servidor web -LOG_PATH = '/srv/empresa/logs/empresa-libre.log' +LOG_PATH = '/home/empresa/.opt/empresa-libre.log' # ~ Establece los valores para sincronizar los backups de la base de datos # ~ por ejemplo diff --git a/source/app/main_linux.ini b/source/app/main_linux.ini index e028cb8..f5597bf 100644 --- a/source/app/main_linux.ini +++ b/source/app/main_linux.ini @@ -1,8 +1,8 @@ [uwsgi] http = :8000 -uid = user -gid = user -chdir = /home/USER/.opt/empresa-libre/source/app +uid = empresa +gid = empresa +chdir = /home/empresa/.opt/empresa-libre/source/app wsgi-file = main.py callable = app master = true