fix: refs #7834 expeditionScan_Put #2832

Merged
guillermo merged 4 commits from 7834-fixExpeditionScanPut into master 2024-08-06 10:56:11 +00:00
1 changed files with 2 additions and 2 deletions
Showing only changes of commit d1bb77d6ed - Show all commits

View File

@ -4,11 +4,11 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`expeditionScan_Put`
vExpeditionFk INT
)
BEGIN
IF (SELECT TRUE FROM expedition WHERE id = vExpeditionFk LIMIT 1) THEN
IF NOT (SELECT TRUE FROM expedition WHERE id = vExpeditionFk LIMIT 1) THEN
guillermo marked this conversation as resolved Outdated

No està al revés el IF ? igual passa en expeditionPallet

No està al revés el IF ? igual passa en expeditionPallet
CALL util.throw('Expedition not exists');
END IF;
IF (SELECT TRUE FROM expeditionPallet WHERE id = vPalletFk LIMIT 1) THEN
IF NOT (SELECT TRUE FROM expeditionPallet WHERE id = vPalletFk LIMIT 1) THEN
CALL util.throw('Pallet not exists');
END IF;