hotfix ticketFutureAdvance warehouse #1316

Merged
alexandre merged 2 commits from hotFix-ticketFutureAdvance-warehouse into master 2023-02-09 07:18:11 +00:00
2 changed files with 18 additions and 12 deletions
Showing only changes of commit ef5b29d6f3 - Show all commits

View File

@ -65,12 +65,15 @@ export default class Controller extends Section {
let today = new Date();
const tomorrow = new Date(today);
tomorrow.setDate(tomorrow.getDate() + 1);
this.filterParams = {
dateFuture: tomorrow,
dateToAdvance: today,
warehouseFk: this.vnConfig.warehouseFk
};
this.$.model.applyFilter(null, this.filterParams);
this.$http.get(`UserConfigs/getUserConfig`)
.then(res => {
this.filterParams = {
dateFuture: tomorrow,
dateToAdvance: today,
warehouseFk: res.data.warehouseFk
};
this.$.model.addFilter({}, this.filterParams);
});
}
compareDate(date) {

View File

@ -59,12 +59,15 @@ export default class Controller extends Section {
setDefaultFilter() {
const today = new Date();
this.filterParams = {
originDated: today,
futureDated: today,
warehouseFk: this.vnConfig.warehouseFk
};
this.$.model.applyFilter(null, this.filterParams);
this.$http.get(`UserConfigs/getUserConfig`)
.then(res => {
this.filterParams = {
originDated: today,
futureDated: today,
warehouseFk: res.data.warehouseFk
};
this.$.model.applyFilter(null, this.filterParams);
});
}
compareDate(date) {