From 73f1afda1f9504105045de6455ff19147278152c Mon Sep 17 00:00:00 2001 From: guillermo Date: Thu, 7 Nov 2024 12:24:40 +0100 Subject: [PATCH] feat: refs #4948 Version expedition_doSelfConsumptionPackaging --- db/routines/vn/procedures/ticket_doSelfConsumptionPackaging.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/routines/vn/procedures/ticket_doSelfConsumptionPackaging.sql b/db/routines/vn/procedures/ticket_doSelfConsumptionPackaging.sql index 3ccb04726..93eb7a45f 100644 --- a/db/routines/vn/procedures/ticket_doSelfConsumptionPackaging.sql +++ b/db/routines/vn/procedures/ticket_doSelfConsumptionPackaging.sql @@ -54,7 +54,7 @@ proc: BEGIN WHERE itemFk = vItemFk AND ticketFk = vTicketFk; - IF vSaleFk NOT IS NULL THEN + IF vSaleFk IS NOT NULL THEN UPDATE sale SET quantity = quantity + 1 WHERE id = vSaleFk;