Merge branch 'master' into develop
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good

This commit is contained in:
2025-11-24 12:01:01 +01:00

View File

@@ -308,7 +308,7 @@ rule "checkDeleteMtbColtWithDoc"
no-loop no-loop
when when
eval(checkRulesEnabled) eval(checkRulesEnabled)
$entity : MtbColt(operation == OperationType.DELETE && hasDocument && hasQuantity) $entity : MtbColt(operation == OperationType.DELETE && hasDocument)
then then
throw new CheckConstraintException("Impossibile eliminare un collo agganciato a documento"); throw new CheckConstraintException("Impossibile eliminare un collo agganciato a documento");
end end
@@ -318,7 +318,7 @@ rule "checkDeleteMtbColtWithoutDoc"
no-loop no-loop
when when
eval(checkRulesEnabled) eval(checkRulesEnabled)
$entity : MtbColt(operation == OperationType.DELETE && !hasDocument || !hasQuantity) $entity : MtbColt(operation == OperationType.DELETE && !hasDocument)
then then
PackagesRules.checkForAnyColloRif(conn, $entity.getGestione(), $entity.getSerCollo(), $entity.getNumCollo(), $entity.getDataCollo()); PackagesRules.checkForAnyColloRif(conn, $entity.getGestione(), $entity.getSerCollo(), $entity.getNumCollo(), $entity.getDataCollo());
end end