#1794 index de balance pierde la companyFk
gitea/salix/dev This commit looks good Details

This commit is contained in:
Carlos Jimenez Ruiz 2019-10-15 13:18:56 +02:00
parent 2d90af906f
commit 3595524286
1 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,7 @@ class Controller {
this.$translate = $translate;
this.accessToken = vnToken.token;
this.companyFk = vnConfig.companyFk;
this.vnConfig = vnConfig;
this.filter = {
include: {
relation: 'company',
@ -29,6 +29,17 @@ class Controller {
},
};
}
get companyFk() {
if (!this._companyFk)
return this.vnConfig.companyFk;
return this._companyFk;
}
set companyFk(id) {
this._companyFk = id;
}
setOrder(value) {
this.params.params.companyFk = value;
this.filter.where.companyFk = value;