This commit is contained in:
parent
c9a9a6e074
commit
e4477ca109
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue