From 87f0a7e417afc3c84d27f0c09b4ea968b946b750 Mon Sep 17 00:00:00 2001 From: Joan Sanchez Date: Thu, 9 Apr 2020 20:03:45 +0200 Subject: [PATCH] delivery-note get ticket address fix --- print/templates/reports/delivery-note/delivery-note.js | 1 + 1 file changed, 1 insertion(+) diff --git a/print/templates/reports/delivery-note/delivery-note.js b/print/templates/reports/delivery-note/delivery-note.js index f22d7694a..cdf355f60 100755 --- a/print/templates/reports/delivery-note/delivery-note.js +++ b/print/templates/reports/delivery-note/delivery-note.js @@ -72,6 +72,7 @@ module.exports = { p.name province FROM ticket t JOIN address a ON a.clientFk = t.clientFk + AND a.id = t.addressFk LEFT JOIN province p ON p.id = a.provinceFk WHERE t.id = ?`, [ticketId]); },