Fix regola checkDeleteMtbColrWithoutDoc

This commit is contained in:
2025-11-24 16:40:31 +01:00
parent 9d82cbc610
commit bcb8f4475d

View File

@@ -338,7 +338,7 @@ rule "checkDeleteMtbColrWithoutDoc"
no-loop
when
eval(checkRulesEnabled)
$entity : MtbColr(operation == OperationType.DELETE && !hasDocument || !hasQuantity)
$entity : MtbColr(operation == OperationType.DELETE && (!hasDocument || !hasQuantity))
then
PackagesRules.checkForAnyColloRif(conn, $entity.getGestione(), $entity.getSerCollo(), $entity.getNumCollo(), $entity.getDataCollo());
end