Add command button for show details exists in warehouses
This commit is contained in:
parent
cd22a5a24d
commit
7a1fd8fcaf
|
@ -1,5 +0,0 @@
|
|||
site_name: Documentación de EmpresaLibre
|
||||
site_url: https://doc.empresalibre.mx
|
||||
nav:
|
||||
- Inicio: index.md
|
||||
theme: readthedocs
|
|
@ -462,6 +462,7 @@ class Configuracion(BaseModel):
|
|||
'chk_config_precio_con_impuestos',
|
||||
'chk_llevar_inventario',
|
||||
'chk_use_packing',
|
||||
'chk_multi_stock',
|
||||
)
|
||||
data = (Configuracion
|
||||
.select()
|
||||
|
|
|
@ -19,8 +19,7 @@ function products_default_config(){
|
|||
$$('grid_products').showColumn('existencia')
|
||||
}
|
||||
show('cant_by_packing', values.chk_use_packing)
|
||||
|
||||
|
||||
show('cmd_show_exists', values.chk_multi_stock)
|
||||
}
|
||||
})
|
||||
|
||||
|
@ -52,6 +51,7 @@ var products_controllers = {
|
|||
$$("cmd_add_inventory").attachEvent("onItemClick", cmd_add_inventory_click)
|
||||
$$("cmd_products_add").attachEvent("onItemClick", cmd_products_add_click)
|
||||
$$('cmd_add_products_from_xml').attachEvent('onItemClick', cmd_add_products_from_xml_click)
|
||||
$$('cmd_show_exists').attachEvent('onItemClick', cmd_show_exists_click)
|
||||
$$('cmd_save_products_add').attachEvent('onItemClick', cmd_save_products_add_click)
|
||||
$$('cmd_close_products_add').attachEvent('onItemClick', cmd_close_products_add_click)
|
||||
$$("chk_automatica").attachEvent("onChange", chk_automatica_change)
|
||||
|
@ -468,6 +468,20 @@ function cmd_add_inventory_click(id, e, node){
|
|||
$$('win_add_inventory').show()
|
||||
}
|
||||
|
||||
|
||||
//~ Show details inventory
|
||||
function cmd_show_exists_click(id, e, node){
|
||||
var row = $$('grid_products').getSelectedItem()
|
||||
if (row == undefined){
|
||||
msg_error('Selecciona un Producto')
|
||||
return
|
||||
}
|
||||
|
||||
win_show_exists.init()
|
||||
$$('win_show_exists').show()
|
||||
}
|
||||
|
||||
|
||||
//~ Add products
|
||||
function cmd_products_add_click(id, e, node){
|
||||
$$("multi_products").setValue("product_add")
|
||||
|
@ -797,3 +811,4 @@ function _add_entries_inventory_manual(row_id, data){
|
|||
})
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,8 @@ var toolbar_products = [
|
|||
type: "iconButton", autowidth: true, icon: "plus"},
|
||||
{view: "button", id: "cmd_products_add", label: "Altas CFDI", hidden: true,
|
||||
type: "iconButton", autowidth: true, icon: "plus"},
|
||||
{view: 'button', id: 'cmd_show_exists', label: 'Existencias', hidden: true,
|
||||
type: 'iconButton', autowidth: true, icon: 'table'},
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue