feat expeditionPalletPrint refs #5210 #2647

Merged
sergiodt merged 1 commits from 5210_expeditionPalletPrint into dev 2024-06-27 13:48:35 +00:00
1 changed files with 10 additions and 1 deletions

View File

@ -9,6 +9,15 @@ BEGIN
*/
DECLARE vPrinterFk INT;
DECLARE vUserFk INT DEFAULT account.myUser_getId();
DECLARE vIsInExpeditionPallet BOOL;
SELECT COUNT(id) INTO vIsInExpeditionPallet
FROM expeditionPallet
WHERE id = vSelf;
IF NOT vIsInExpeditionPallet THEN
CALL util.throw("ExpeditionPallet not exists");
END IF;
SELECT o.labelerFk INTO vPrinterFk
FROM operator o