fix: refs #7882 Stable version
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Guillermo Bonet 2024-08-29 13:21:59 +02:00
parent c9a9a6e074
commit e4477ca109
1 changed files with 2 additions and 3 deletions

View File

@ -33,13 +33,12 @@ module.exports = Self => {
WHERE ot.code = 'delivery'
)
SELECT a.id code,
c.name,
c.socialName name,
CONCAT_WS(', ', IFNULL(a.street, ''), IFNULL(a.city, ''), IFNULL(p.name, '')) longAddress,
CONCAT(IFNULL(a.mobile, c.mobile)) phoneNumber,
dn.description poiDeliveryComments,
c.email email
FROM route r
JOIN ticket t ON t.routeFk = r.id
FROM ticket t
JOIN address a ON a.id = t.addressFk
JOIN province p ON p.id = a.provinceFk
JOIN country co ON co.id = p.countryFk