diff --git a/modules/ticket/back/methods/ticket/summary.js b/modules/ticket/back/methods/ticket/summary.js index 2b1d8711c8..d1037f251e 100644 --- a/modules/ticket/back/methods/ticket/summary.js +++ b/modules/ticket/back/methods/ticket/summary.js @@ -51,6 +51,7 @@ module.exports = Self => { include: [ {relation: 'warehouse', scope: {fields: ['name']}}, {relation: 'agencyMode', scope: {fields: ['name']}}, + {relation: 'zone', scope: {fields: ['name']}}, { relation: 'client', scope: { diff --git a/modules/ticket/front/summary/index.html b/modules/ticket/front/summary/index.html index 9ef27d093a..7bbff4f28d 100644 --- a/modules/ticket/front/summary/index.html +++ b/modules/ticket/front/summary/index.html @@ -24,12 +24,12 @@ + + - - @@ -46,6 +46,9 @@ {{$ctrl.summary.routeFk}} + + diff --git a/modules/ticket/front/summary/index.js b/modules/ticket/front/summary/index.js index 5b5f9fb906..0cfa5614f9 100644 --- a/modules/ticket/front/summary/index.js +++ b/modules/ticket/front/summary/index.js @@ -21,7 +21,7 @@ class Controller { } get formattedAddress() { - if (!this.summary) return; + if (!this.summary) return ''; let address = this.summary.address; let province = address.province ? `(${address.province.name})` : '';