#1114 item.regularize
This commit is contained in:
parent
bfaf9b1ed4
commit
b93e2f5359
|
@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -92,7 +92,7 @@
|
|||
<tpl-body>
|
||||
<div>
|
||||
<h5 style="text-align: center">
|
||||
<span translate>Regularize</span>
|
||||
<span translate>Regularize stock</span>
|
||||
</h5>
|
||||
<vn-textfield
|
||||
label="Quantity"
|
||||
|
|
|
@ -9,7 +9,7 @@ class Controller {
|
|||
this.vnApp = vnApp;
|
||||
this.$translate = $translate;
|
||||
this.moreOptions = [
|
||||
{callback: this.showRegularizeDialog, name: 'Regularize'}
|
||||
{callback: this.showRegularizeDialog, name: 'Regularize stock'}
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -22,7 +22,8 @@ class Controller {
|
|||
}
|
||||
|
||||
set warehouseFk(value) {
|
||||
this._warehouseFk = value;
|
||||
if (value)
|
||||
this._warehouseFk = value;
|
||||
}
|
||||
|
||||
get warehouseFk() {
|
||||
|
|
|
@ -1 +1 @@
|
|||
Regularize: Regularizar
|
||||
Regularize stock: Regularizar stock
|
Loading…
Reference in New Issue