From 45e6d7f0465a39dace11037b2dc2570e5720c43a Mon Sep 17 00:00:00 2001 From: guillermo Date: Tue, 26 Nov 2024 09:11:36 +0100 Subject: [PATCH] fix: refs #4948 ticket_selfConsumptionPackaging --- .../vn/procedures/expedition_selfConsumptionPackaging.sql | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/db/routines/vn/procedures/expedition_selfConsumptionPackaging.sql b/db/routines/vn/procedures/expedition_selfConsumptionPackaging.sql index 330292f62..327934a43 100644 --- a/db/routines/vn/procedures/expedition_selfConsumptionPackaging.sql +++ b/db/routines/vn/procedures/expedition_selfConsumptionPackaging.sql @@ -43,11 +43,7 @@ proc:BEGIN JOIN productionConfig pc WHERE e.id = vSelf; - IF vClientFk IS NULL OR vAddressFk IS NULL THEN - CALL util.throw('Some config parameters are not set'); - END IF; - - IF vItemFk IS NULL THEN + IF vClientFk IS NULL OR vItemFk IS NULL THEN LEAVE proc; END IF;