2957-ticket_summary_postcode + fetched tags css #649
|
@ -63,7 +63,7 @@ module.exports = Self => {
|
||||||
}, {
|
}, {
|
||||||
relation: 'address',
|
relation: 'address',
|
||||||
scope: {
|
scope: {
|
||||||
fields: ['street', 'city', 'provinceFk', 'phone', 'mobile'],
|
fields: ['street', 'city', 'provinceFk', 'phone', 'mobile', 'postalCode'],
|
||||||
include: {
|
include: {
|
||||||
relation: 'province',
|
relation: 'province',
|
||||||
scope: {
|
scope: {
|
||||||
|
|
|
@ -3,3 +3,4 @@ No delivery zone available for this shipping date: No hay una zona de reparto di
|
||||||
No delivery zone available for this parameters: No hay una zona de reparto disponible con estos parámetros
|
No delivery zone available for this parameters: No hay una zona de reparto disponible con estos parámetros
|
||||||
Deleted: Eliminado
|
Deleted: Eliminado
|
||||||
Zone: Zona
|
Zone: Zona
|
||||||
|
Edit address: Editar dirección
|
|
@ -16,10 +16,11 @@ class Controller extends Summary {
|
||||||
get formattedAddress() {
|
get formattedAddress() {
|
||||||
if (!this.summary) return '';
|
if (!this.summary) return '';
|
||||||
|
|
||||||
let address = this.summary.address;
|
const address = this.summary.address;
|
||||||
let province = address.province ? `(${address.province.name})` : '';
|
const postcode = address.postalCode;
|
||||||
|
const province = address.province ? `(${address.province.name})` : '';
|
||||||
|
|
||||||
return `${address.street} - ${address.city} ${province}`;
|
return `${address.street} - ${postcode} - ${address.city} ${province}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
loadData() {
|
loadData() {
|
||||||
|
|
Loading…
Reference in New Issue