forked from elmau/empresa-libre
Merge branch 'develop'
Actualizar archivos de configuración
This commit is contained in:
commit
eaa762a7ff
|
@ -10,7 +10,7 @@ DEFAULT_PASSWORD = 'blades3.3'
|
||||||
|
|
||||||
|
|
||||||
#~ Establece una ruta accesible para el servidor web
|
#~ 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
|
# ~ Establece los valores para sincronizar los backups de la base de datos
|
||||||
# ~ por ejemplo
|
# ~ por ejemplo
|
||||||
|
|
|
@ -397,7 +397,6 @@ class Certificado(object):
|
||||||
print ('\n', result)
|
print ('\n', result)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
if not DEBUG:
|
if not DEBUG:
|
||||||
if not rfc == session_rfc:
|
if not rfc == session_rfc:
|
||||||
self.error = 'El RFC del certificado no corresponde.'
|
self.error = 'El RFC del certificado no corresponde.'
|
||||||
|
@ -1755,6 +1754,7 @@ class ImportFacturaLibre(object):
|
||||||
|
|
||||||
tasas = {
|
tasas = {
|
||||||
'16': 0.16,
|
'16': 0.16,
|
||||||
|
'16.00': 0.16,
|
||||||
'11': 0.11,
|
'11': 0.11,
|
||||||
'-10': 0.10,
|
'-10': 0.10,
|
||||||
'0': 0.0,
|
'0': 0.0,
|
||||||
|
@ -1861,6 +1861,9 @@ class ImportFacturaLibre(object):
|
||||||
for row in rows:
|
for row in rows:
|
||||||
new = {t: row[s] for s, t in fields}
|
new = {t: row[s] for s, t in fields}
|
||||||
new['slug'] = to_slug(new['nombre'])
|
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']:
|
if new['es_extranjero']:
|
||||||
new['tipo_persona'] = 4
|
new['tipo_persona'] = 4
|
||||||
elif new['rfc'] == 'XAXX010101000':
|
elif new['rfc'] == 'XAXX010101000':
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
[uwsgi]
|
[uwsgi]
|
||||||
http = :8000
|
http = :8000
|
||||||
uid = user
|
uid = empresa
|
||||||
gid = user
|
gid = empresa
|
||||||
chdir = /home/USER/.opt/empresa-libre/source/app
|
chdir = /home/empresa/.opt/empresa-libre/source/app
|
||||||
wsgi-file = main.py
|
wsgi-file = main.py
|
||||||
callable = app
|
callable = app
|
||||||
master = true
|
master = true
|
||||||
|
|
Loading…
Reference in New Issue