removed duplicated code
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-09-04 08:04:31 +02:00
parent 7daf2e4328
commit e17f708ea5
1 changed files with 0 additions and 25 deletions

View File

@ -243,31 +243,6 @@ class Controller {
});
}
/*
* Gets a zone from an agency
*/
onChangeWarehouse(warehouseId) {
let params = {
landed: this.ticket.landed,
addressFk: this.ticket.addressFk,
agencyModeFk: this.ticket.agencyModeFk,
warehouseFk: warehouseId
};
this.ticket.zoneFk = null;
let query = `/api/Agencies/getShipped`;
this.$http.get(query, {params}).then(res => {
if (res.data)
this.ticket.zoneFk = res.data.id;
if (!res.data) {
this.vnApp.showMessage(
this.$translate.instant('No delivery zone available for this parameters')
);
}
});
}
async onStepChange() {
if (this.isFormInvalid()) {
return this.vnApp.showError(