Mostrar código de barras en productos
This commit is contained in:
parent
f430947708
commit
c47b242520
|
@ -185,6 +185,7 @@ class Configuracion(BaseModel):
|
||||||
fields = (
|
fields = (
|
||||||
'chk_config_anticipo',
|
'chk_config_anticipo',
|
||||||
'chk_config_cuenta_predial',
|
'chk_config_cuenta_predial',
|
||||||
|
'chk_config_codigo_barras',
|
||||||
'chk_config_ine',
|
'chk_config_ine',
|
||||||
'chk_usar_punto_de_venta',
|
'chk_usar_punto_de_venta',
|
||||||
)
|
)
|
||||||
|
@ -195,6 +196,7 @@ class Configuracion(BaseModel):
|
||||||
elif keys['fields'] == 'productos':
|
elif keys['fields'] == 'productos':
|
||||||
fields = (
|
fields = (
|
||||||
'chk_config_cuenta_predial',
|
'chk_config_cuenta_predial',
|
||||||
|
'chk_config_codigo_barras',
|
||||||
)
|
)
|
||||||
data = (Configuracion
|
data = (Configuracion
|
||||||
.select()
|
.select()
|
||||||
|
|
|
@ -53,6 +53,7 @@ var controllers = {
|
||||||
$$('chk_config_anticipo').attachEvent('onItemClick', chk_config_item_click)
|
$$('chk_config_anticipo').attachEvent('onItemClick', chk_config_item_click)
|
||||||
$$('chk_config_ine').attachEvent('onItemClick', chk_config_item_click)
|
$$('chk_config_ine').attachEvent('onItemClick', chk_config_item_click)
|
||||||
$$('chk_config_cuenta_predial').attachEvent('onItemClick', chk_config_item_click)
|
$$('chk_config_cuenta_predial').attachEvent('onItemClick', chk_config_item_click)
|
||||||
|
$$('chk_config_codigo_barras').attachEvent('onItemClick', chk_config_item_click)
|
||||||
$$('chk_usar_punto_de_venta').attachEvent('onItemClick', chk_config_item_click)
|
$$('chk_usar_punto_de_venta').attachEvent('onItemClick', chk_config_item_click)
|
||||||
|
|
||||||
$$('cmd_subir_bdfl').attachEvent('onItemClick', cmd_subir_bdfl_click)
|
$$('cmd_subir_bdfl').attachEvent('onItemClick', cmd_subir_bdfl_click)
|
||||||
|
|
|
@ -10,6 +10,7 @@ function configurar_productos(){
|
||||||
var values = data.json()
|
var values = data.json()
|
||||||
//~ showvar(values)
|
//~ showvar(values)
|
||||||
show('cuenta_predial', values.chk_config_cuenta_predial)
|
show('cuenta_predial', values.chk_config_cuenta_predial)
|
||||||
|
show('codigo_barras', values.chk_config_codigo_barras)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -496,6 +496,8 @@ var options_admin_otros = [
|
||||||
{cols: [{maxWidth: 15},
|
{cols: [{maxWidth: 15},
|
||||||
{view: 'checkbox', id: 'chk_config_cuenta_predial', labelWidth: 0,
|
{view: 'checkbox', id: 'chk_config_cuenta_predial', labelWidth: 0,
|
||||||
labelRight: 'Mostrar cuenta predial'},
|
labelRight: 'Mostrar cuenta predial'},
|
||||||
|
{view: 'checkbox', id: 'chk_config_codigo_barras', labelWidth: 0,
|
||||||
|
labelRight: 'Mostrar código de barras'},
|
||||||
{}]},
|
{}]},
|
||||||
{maxHeight: 20},
|
{maxHeight: 20},
|
||||||
{template: 'Complementos', type: 'section'},
|
{template: 'Complementos', type: 'section'},
|
||||||
|
|
Loading…
Reference in New Issue