Pasar RFC al migrar tablas
This commit is contained in:
parent
aece36905d
commit
ca4810bd3d
|
@ -1,6 +1,5 @@
|
|||
v 1.13.0 [10-sep-2018]
|
||||
----------------------
|
||||
- Plantilla para factura de pago
|
||||
- Cancelar factura de pago
|
||||
|
||||
* IMPORTANTE: Es necesario realizar una migración, despues de actualizar la rama principal.
|
||||
|
|
|
@ -7955,14 +7955,17 @@ def _crear_tablas(rfc):
|
|||
return True
|
||||
|
||||
|
||||
def _migrate_tables():
|
||||
def _migrate_tables(rfc=''):
|
||||
from playhouse.migrate import PostgresqlMigrator, migrate
|
||||
|
||||
rfc = input('Introduce el RFC: ').strip().upper()
|
||||
if not rfc:
|
||||
msg = 'El RFC es requerido'
|
||||
log.error(msg)
|
||||
return
|
||||
if rfc:
|
||||
rfc = rfc.strip().upper()
|
||||
else:
|
||||
rfc = input('Introduce el RFC: ').strip().upper()
|
||||
if not rfc:
|
||||
msg = 'El RFC es requerido'
|
||||
log.error(msg)
|
||||
return
|
||||
|
||||
args = util.get_con(rfc)
|
||||
if not args:
|
||||
|
@ -8978,7 +8981,7 @@ def main(iniciar_bd, migrar_bd, nuevo_superusuario, cambiar_contraseña,
|
|||
sys.exit(0)
|
||||
|
||||
if opt['migrar_bd']:
|
||||
_migrate_tables()
|
||||
_migrate_tables(rfc)
|
||||
sys.exit(0)
|
||||
|
||||
if opt['nuevo_superusuario']:
|
||||
|
|
|
@ -612,18 +612,6 @@ function cmd_guardar_deposito_click(){
|
|||
|
||||
|
||||
function cancelar_movimiento(id){
|
||||
//~ var grid = $$('grid_cuentabanco')
|
||||
|
||||
//~ webix.ajax().del('/movbanco', {id: id}, function(text, xml, xhr){
|
||||
//~ if(xhr.status == 200){
|
||||
//~ get_estado_cuenta()
|
||||
//~ get_saldo_cuenta()
|
||||
//~ msg_ok('Movimiento cancelado correctamente')
|
||||
//~ }else{
|
||||
//~ msg_error('No se pudo eliminar')
|
||||
//~ }
|
||||
//~ })
|
||||
|
||||
var data = {'opt': 'cancel', 'id': id}
|
||||
webix.ajax().post('/movbanco', data, {
|
||||
error:function(text, data, XmlHttpRequest){
|
||||
|
|
Loading…
Reference in New Issue