Controllo regola checkCanDeleteOrder se steps non presenti

This commit is contained in:
2024-05-08 16:44:24 +02:00
parent 74ec8ff9eb
commit b5a7ba0054

View File

@@ -403,7 +403,7 @@ rule "checkCanCloseOrder"
no-loop
when
eval(checkRulesEnabled)
$entity: DtbOrdt(operation == OperationType.UPDATE && gestione == "L" && flagEvasoProd == "E" && flagEvasoForzato == "S")
$entity: DtbOrdt(operation == OperationType.UPDATE && gestione == "L" && !dtbOrdSteps.isEmpty() && flagEvasoProd == "E" && flagEvasoForzato == "S")
then
ProductionsRules.checkCanCloseOrder(conn, $entity);
end