sistemata regola per rossogargano
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user