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