added postcode to summary + basic data translation
This commit is contained in:
parent
7775eb7951
commit
48f80fad8f
|
@ -63,7 +63,7 @@ module.exports = Self => {
|
|||
}, {
|
||||
relation: 'address',
|
||||
scope: {
|
||||
fields: ['street', 'city', 'provinceFk', 'phone', 'mobile'],
|
||||
fields: ['street', 'city', 'provinceFk', 'phone', 'mobile', 'postalCode'],
|
||||
include: {
|
||||
relation: 'province',
|
||||
scope: {
|
||||
|
|
|
@ -2,4 +2,5 @@ No delivery zone available for this landing date: No hay una zona de reparto dis
|
|||
No delivery zone available for this shipping date: No hay una zona de reparto disponible para la fecha de preparación seleccionada
|
||||
No delivery zone available for this parameters: No hay una zona de reparto disponible con estos parámetros
|
||||
Deleted: Eliminado
|
||||
Zone: Zona
|
||||
Zone: Zona
|
||||
Edit address: Editar dirección
|
|
@ -16,10 +16,11 @@ class Controller extends Summary {
|
|||
get formattedAddress() {
|
||||
if (!this.summary) return '';
|
||||
|
||||
let address = this.summary.address;
|
||||
let province = address.province ? `(${address.province.name})` : '';
|
||||
const address = this.summary.address;
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue