6220-addressFilter #1886

Merged
carlossa merged 13 commits from 6220-addressFilter into dev 2023-12-18 11:45:12 +00:00
1 changed files with 37 additions and 19 deletions
Showing only changes of commit c81ca94d2e - Show all commits

View File

@ -143,11 +143,29 @@ module.exports = Self => {
p.id AS provinceFk,
p.name AS province,
u.id AS salesPersonFk,
u.name AS salesPerson
u.name AS salesPerson,
a.street,
a.city AS addressCity,
a.provinceFk AS addressProvinceFk,
a.postalCode AS addressPostalCode,
a.phone AS addressPhone,
a.mobile AS addressMobile,
a.nickname,
a.isDefaultAddress,
a.agencyModeFk AS addressAgencyModeFk,
a.isActive AS addressIsActive,
Review

provinceClientFk

provinceClientFk
a.longitude AS addressLongitude,
Review

provinceAddressFk

provinceAddressFk
a.latitude AS addressLatitude,
a.isEqualizated,
a.customsAgentFk AS addressCustomsAgentFk,
a.incotermsFk AS addressIncotermsFk,
a.isLogifloraAllowed,
a.editorFk AS addressEditorFk
FROM client c
LEFT JOIN account.user u ON u.id = c.salesPersonFk
LEFT JOIN province p ON p.id = c.provinceFk
JOIN vn.address a ON a.clientFk = c.id
JOIN vn.address a ON a.clientFk = c.id;
`
);