commit
a50ad106d2
|
@ -1205,7 +1205,7 @@ def upload_file(rfc, opt, file_obj):
|
||||||
if save_file(path, file_obj.file.read()):
|
if save_file(path, file_obj.file.read()):
|
||||||
return {'status': 'server', 'name': file_obj.filename, 'ok': True}
|
return {'status': 'server', 'name': file_obj.filename, 'ok': True}
|
||||||
|
|
||||||
return {'status': 'error'}
|
return {'status': 'error', 'ok': False}
|
||||||
|
|
||||||
|
|
||||||
def cancel_cfdi(uuid, pk12, rfc, auth):
|
def cancel_cfdi(uuid, pk12, rfc, auth):
|
||||||
|
|
|
@ -1183,7 +1183,9 @@ class MovimientosBanco(BaseModel):
|
||||||
def add(cls, values):
|
def add(cls, values):
|
||||||
ids = values.pop('ids', '')
|
ids = values.pop('ids', '')
|
||||||
actualizar = False
|
actualizar = False
|
||||||
if not 'saldo' in values:
|
if 'saldo' in values:
|
||||||
|
saldo = values['saldo']
|
||||||
|
else:
|
||||||
actualizar = True
|
actualizar = True
|
||||||
hora = values.pop('hora')
|
hora = values.pop('hora')
|
||||||
values['fecha'] = '{}T{}'.format(values['fecha'][:10], hora)
|
values['fecha'] = '{}T{}'.format(values['fecha'][:10], hora)
|
||||||
|
|
Loading…
Reference in New Issue