From b93e2f5359718992bad46e924d548c23ab631573 Mon Sep 17 00:00:00 2001 From: Gerard Date: Wed, 13 Feb 2019 09:49:41 +0100 Subject: [PATCH] #1114 item.regularize --- front/salix/components/user-configuration-popover/index.js | 6 +++--- modules/item/front/descriptor/index.html | 2 +- modules/item/front/descriptor/index.js | 5 +++-- modules/item/front/descriptor/locale/es.yml | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/front/salix/components/user-configuration-popover/index.js b/front/salix/components/user-configuration-popover/index.js index 18a8aae7e..5f8eeb330 100644 --- a/front/salix/components/user-configuration-popover/index.js +++ b/front/salix/components/user-configuration-popover/index.js @@ -92,7 +92,7 @@ class Controller { this.company = value; if (value && (!window.localStorage.localCompanyFk || window.localStorage.localCompanyFk === 'null')) - window.localStorage.defaultCompanyFk = value; + window.localStorage.setItem('localCompanyFk', value); this.setUserConfig('companyFk', value); } @@ -118,13 +118,13 @@ class Controller { if (res.data && res.data.warehouseFk) { this.warehouse = res.data.warehouseFk; if (res.data.warehouseFk && !window.localStorage.localWarehouseFk) - window.localStorage.defaultWarehouseFk = res.data.warehouseFk; + window.localStorage.setItem('localWarehouseFk', res.data.warehouseFk); } if (res.data && res.data.companyFk) { this.company = res.data.companyFk; if (res.data.companyFk && !window.localStorage.localCompanyFk) - window.localStorage.defaultCompanyFk = res.data.companyFk; + window.localStorage.setItem('defaultCompanyFk', res.data.companyFk); } }); } diff --git a/modules/item/front/descriptor/index.html b/modules/item/front/descriptor/index.html index 56f64c3aa..02e1267dc 100644 --- a/modules/item/front/descriptor/index.html +++ b/modules/item/front/descriptor/index.html @@ -92,7 +92,7 @@
- Regularize + Regularize stock