aggiunta regola per completare cod_art_for anche nella mtb_lisa

This commit is contained in:
2024-05-15 09:42:15 +02:00
parent eeac0a0348
commit 63c7ed7faf

View File

@@ -201,7 +201,7 @@ then
}
end
rule "completeCodArtForMtbLisa"
rule "completeCodArtForMtbLisaData"
no-loop
when
eval(completeRulesEnabled)
@@ -211,6 +211,18 @@ then
modify ( $entity ) { setCodArtFor(codArtFor) }
end
rule "completeCodArtForMtbLisa"
no-loop
when
eval(completeRulesEnabled)
$entity : MtbLisa(codArtFor == null && codAlis != null && codMart != null)
then
String codArtFor = PurchasesRules.completeCodArtFor(conn, $entity.getCodAlis(), $entity.getCodMart());
modify ( $entity ) { setCodArtFor(codArtFor) }
end
rule "completeModificatoDaLisa"
no-loop
when