diff --git a/doc/mkdocs.yml b/doc/mkdocs.yml deleted file mode 100644 index fee48aa..0000000 --- a/doc/mkdocs.yml +++ /dev/null @@ -1,5 +0,0 @@ -site_name: Documentación de EmpresaLibre -site_url: https://doc.empresalibre.mx -nav: - - Inicio: index.md -theme: readthedocs diff --git a/source/app/models/main.py b/source/app/models/main.py index 59ec507..361b081 100644 --- a/source/app/models/main.py +++ b/source/app/models/main.py @@ -462,6 +462,7 @@ class Configuracion(BaseModel): 'chk_config_precio_con_impuestos', 'chk_llevar_inventario', 'chk_use_packing', + 'chk_multi_stock', ) data = (Configuracion .select() diff --git a/source/static/js/controller/products.js b/source/static/js/controller/products.js index 67031c3..e95f6bf 100644 --- a/source/static/js/controller/products.js +++ b/source/static/js/controller/products.js @@ -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){ }) } + diff --git a/source/static/js/ui/products.js b/source/static/js/ui/products.js index fe8275f..fa40ff0 100644 --- a/source/static/js/ui/products.js +++ b/source/static/js/ui/products.js @@ -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'}, ]