feat: refs #8127 quitar esquemas
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Robert Ferrús 2024-11-15 11:32:20 +01:00
parent f7a5fc7e31
commit c5f1b05671
1 changed files with 3 additions and 6 deletions

View File

@ -25,18 +25,17 @@ BEGIN
LIMIT 1;
RETURN IFNULL(vCommission, 0);
ELSE
SELECT e.id INTO vLastEntryFk
FROM vn.entry e
JOIN vn.travel tr ON tr.id = e.travelFk
FROM `entry` e
JOIN travel tr ON tr.id = e.travelFk
WHERE e.supplierFk = vSupplierFk
ORDER BY tr.landed DESC
LIMIT 1;
IF vLastEntryFk THEN
SELECT commission INTO vCurrentCommission
FROM vn.entry
FROM `entry`
WHERE id = vLastEntryFk;
ELSE
@ -47,8 +46,6 @@ BEGIN
END IF;
RETURN vCurrentCommission;
END IF;
END$$
DELIMITER ;