From 06b72ae708ec31851d5d66dbae2a1f7235003a0f Mon Sep 17 00:00:00 2001 From: joan Date: Mon, 8 Nov 2021 07:41:10 +0100 Subject: [PATCH] fix(pickup-order): changed sql query from pickup order --- print/templates/reports/claim-pickup-order/sql/client.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/print/templates/reports/claim-pickup-order/sql/client.sql b/print/templates/reports/claim-pickup-order/sql/client.sql index 249857433..30a42d5c8 100644 --- a/print/templates/reports/claim-pickup-order/sql/client.sql +++ b/print/templates/reports/claim-pickup-order/sql/client.sql @@ -12,8 +12,9 @@ SELECT FROM claim cl JOIN client c ON c.id = cl.clientFk JOIN account.user u ON u.id = c.id - JOIN country ct ON ct.id = c.countryFk JOIN ticket t ON t.id = cl.ticketFk JOIN address a ON a.id = t.addressFk - LEFT JOIN province p ON p.id = c.provinceFk + LEFT JOIN province p ON p.id = a.provinceFk + LEFT JOIN autonomy amy ON amy.id = p.autonomyFk + LEFT JOIN country ct ON ct.id = amy.countryFk WHERE cl.id = ? \ No newline at end of file