ticket basicData change zone on date update
gitea/salix/test This commit looks good Details

This commit is contained in:
Joan Sanchez 2019-07-30 12:43:21 +02:00
parent 2c6ba0089b
commit 5974f6e0c2
1 changed files with 6 additions and 4 deletions

View File

@ -146,9 +146,10 @@ class Controller {
};
let query = `/api/Agencies/getLanded`;
this.$http.get(query, {params}).then(res => {
if (res.data && res.data.landed)
if (res.data && res.data.landed) {
this.ticket.zoneFk = res.data.zoneFk;
this.ticket.landed = res.data.landed;
else {
} else {
return this.vnApp.showError(
this.$translate.instant(`No delivery zone available for this shipping date`)
);
@ -165,9 +166,10 @@ class Controller {
};
let query = `/api/Agencies/getShipped`;
this.$http.get(query, {params}).then(res => {
if (res.data)
if (res.data) {
this.ticket.zoneFk = res.data.id;
this.ticket.shipped = res.data.shipped;
else {
} else {
return this.vnApp.showError(
this.$translate.instant(`No delivery zone available for this landing date`)
);