sistemata regola per rossogargano

This commit is contained in:
2025-04-23 10:45:43 +02:00
parent 3a9636b537
commit 56c772c460

View File

@@ -21,15 +21,15 @@ global Boolean completeRulesEnabled
global IntegryCustomerDB customerDb global IntegryCustomerDB customerDb
global IntegryCustomer customer global IntegryCustomer customer
//rule "completeMtbColtProgressivoUlRG" rule "completeMtbColtProgressivoUlRG"
//no-loop no-loop
//when when
// eval(postRulesEnabled) eval(postRulesEnabled && customer == IntegryCustomer.RossoGargano)
// $mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && gestione == 'L' && dataOrd != null && numOrd != null) $mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && gestione == 'L' && dataOrd != null && numOrd != null)
//then then
// int progressivoToSave = CommonRules.retrieveNextProgressivoUlRG(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno()); int progressivoToSave = CommonRules.retrieveNextProgressivoUlRG(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno());
//
// modify($mtbColt){ modify($mtbColt){
// setProgressivoUl(progressivoToSave); setProgressivoUl(progressivoToSave);
// } }
//end end