From 0a12dc23f2fa2c97775b1f638db83225ff2b78ce Mon Sep 17 00:00:00 2001 From: MarcoE Date: Mon, 24 Nov 2025 12:00:42 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20check=20quantit=C3=A0=20nelle=20regole=20?= =?UTF-8?q?di=20MtbColr?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ems-core/src/main/resources/rules/check_cond.drl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ems-core/src/main/resources/rules/check_cond.drl b/ems-core/src/main/resources/rules/check_cond.drl index e5b1a9f213..191cd22122 100644 --- a/ems-core/src/main/resources/rules/check_cond.drl +++ b/ems-core/src/main/resources/rules/check_cond.drl @@ -308,7 +308,7 @@ rule "checkDeleteMtbColtWithDoc" no-loop when eval(checkRulesEnabled) - $entity : MtbColt(operation == OperationType.DELETE && hasDocument && hasQuantity) + $entity : MtbColt(operation == OperationType.DELETE && hasDocument) then throw new CheckConstraintException("Impossibile eliminare un collo agganciato a documento"); end @@ -318,7 +318,7 @@ rule "checkDeleteMtbColtWithoutDoc" no-loop when eval(checkRulesEnabled) - $entity : MtbColt(operation == OperationType.DELETE && !hasDocument || !hasQuantity) + $entity : MtbColt(operation == OperationType.DELETE && !hasDocument) then PackagesRules.checkForAnyColloRif(conn, $entity.getGestione(), $entity.getSerCollo(), $entity.getNumCollo(), $entity.getDataCollo()); end