From 35b508d3d60622d080c4671c047cee1e26e0eaf8 Mon Sep 17 00:00:00 2001 From: robert Date: Tue, 26 Nov 2024 08:33:56 +0100 Subject: [PATCH] fix: refs #8124 workCenter por workCenterFk --- db/routines/vn/procedures/route_calcCommission.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/routines/vn/procedures/route_calcCommission.sql b/db/routines/vn/procedures/route_calcCommission.sql index 47a256994..afca4564d 100644 --- a/db/routines/vn/procedures/route_calcCommission.sql +++ b/db/routines/vn/procedures/route_calcCommission.sql @@ -68,7 +68,7 @@ BEGIN FROM route r JOIN vehicle v ON v.id = r.vehicleFk JOIN routeConfig rc - LEFT JOIN workCenterCommission wc ON wc.workCenter = r.workCenterFk + LEFT JOIN workCenterCommission wc ON wc.workCenterFk = r.workCenterFk WHERE r.id = vSelf AND r.workerFk AND r.commissionWorkCenterFk; @@ -100,7 +100,7 @@ BEGIN FROM route r JOIN vehicle v ON v.id = r.vehicleFk JOIN routeConfig rc - LEFT JOIN workCenterCommission wc ON wc.workCenter = r.workCenterFk + LEFT JOIN workCenterCommission wc ON wc.workCenterFk = r.workCenterFk WHERE r.id = vSelf AND r.kmStart AND r.kmEnd