fix: refs #8124 workCenterFk por commissionWorkCenterFk #3244

Merged
robert merged 1 commits from hotFix2route_calcCommission into master 2024-11-26 08:07:59 +00:00
1 changed files with 2 additions and 2 deletions

View File

@ -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.workCenterFk = r.workCenterFk
LEFT JOIN workCenterCommission wc ON wc.workCenterFk = r.commissionWorkCenterFk
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.workCenterFk = r.workCenterFk
LEFT JOIN workCenterCommission wc ON wc.workCenterFk = r.commissionWorkCenterFk
WHERE r.id = vSelf
AND r.kmStart
AND r.kmEnd