sistemata regola per rossogargano
This commit is contained in:
@@ -21,15 +21,15 @@ global Boolean completeRulesEnabled
|
||||
global IntegryCustomerDB customerDb
|
||||
global IntegryCustomer customer
|
||||
|
||||
//rule "completeMtbColtProgressivoUlRG"
|
||||
//no-loop
|
||||
//when
|
||||
// eval(postRulesEnabled)
|
||||
// $mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && gestione == 'L' && dataOrd != null && numOrd != null)
|
||||
//then
|
||||
// int progressivoToSave = CommonRules.retrieveNextProgressivoUlRG(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno());
|
||||
//
|
||||
// modify($mtbColt){
|
||||
// setProgressivoUl(progressivoToSave);
|
||||
// }
|
||||
//end
|
||||
rule "completeMtbColtProgressivoUlRG"
|
||||
no-loop
|
||||
when
|
||||
eval(postRulesEnabled && customer == IntegryCustomer.RossoGargano)
|
||||
$mtbColt: MtbColt(operation != OperationType.DELETE && progressivoUl == null && gestione != null && gestione == 'L' && dataOrd != null && numOrd != null)
|
||||
then
|
||||
int progressivoToSave = CommonRules.retrieveNextProgressivoUlRG(conn, $mtbColt.getGestione(), $mtbColt.getDataOrd(), $mtbColt.getNumOrd(), $mtbColt.getSegno());
|
||||
|
||||
modify($mtbColt){
|
||||
setProgressivoUl(progressivoToSave);
|
||||
}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user