diff --git a/modules/ticket/front/basic-data/step-one/index.js b/modules/ticket/front/basic-data/step-one/index.js index 636f6a32f4..be8e380e5b 100644 --- a/modules/ticket/front/basic-data/step-one/index.js +++ b/modules/ticket/front/basic-data/step-one/index.js @@ -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`) );