[Consegna] Fix sincronizzazione incasso
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
All checks were successful
IntegryManagementSystem_Multi/pipeline/head This commit looks good
This commit is contained in:
@@ -68,7 +68,11 @@ public class EntityProcessor {
|
||||
return processEntity(entity, false, multiDBTransactionManager);
|
||||
}
|
||||
|
||||
public <T> T processEntity(EntityInterface entity, boolean skipCommit, MultiDBTransactionManager multiDBTransactionManager) throws Exception {
|
||||
public <T> T processEntity(EntityInterface entity, MultiDBTransactionManager multiDBTransactionManager, boolean completeEntity) throws Exception {
|
||||
return processEntity(entity, false, multiDBTransactionManager, completeEntity);
|
||||
}
|
||||
|
||||
public <T> T processEntity(EntityInterface entity, boolean skipCommit, MultiDBTransactionManager multiDBTransactionManager, boolean completeEntity) throws Exception {
|
||||
|
||||
final RequestDataDTO requestDataDTO = ContextLoader.getCurrentWebApplicationContext().getBean(RequestDataDTO.class);
|
||||
String username = "";
|
||||
@@ -77,7 +81,11 @@ public class EntityProcessor {
|
||||
username = requestDataDTO.getUsername();
|
||||
}
|
||||
|
||||
return (T) processEntity(entity, true, skipCommit, username, multiDBTransactionManager, requestDataDTO, true, false);
|
||||
return (T) processEntity(entity, true, skipCommit, username, multiDBTransactionManager, requestDataDTO, completeEntity, false);
|
||||
}
|
||||
|
||||
public <T> T processEntity(EntityInterface entity, boolean skipCommit, MultiDBTransactionManager multiDBTransactionManager) throws Exception {
|
||||
return processEntity(entity, skipCommit, multiDBTransactionManager, true);
|
||||
}
|
||||
|
||||
public EntityBase processEntity(EntityInterface entity, Boolean isSync,
|
||||
|
||||
@@ -6,6 +6,7 @@ import it.integry.ems_model.entity.*
|
||||
import it.integry.ems_model.base.EntityBase
|
||||
import it.integry.ems.rules.util.*
|
||||
import it.integry.ems.rules.completing.*
|
||||
import it.integry.ems_model.utility.UtilityDB
|
||||
import it.integry.ems_model.types.OperationType
|
||||
import it.integry.ems.sync.MultiDBTransaction.Connection;
|
||||
|
||||
@@ -25,6 +26,20 @@ then
|
||||
modify ( $vtbDistIncat ) { setNumDist(numDist) }
|
||||
end
|
||||
|
||||
rule "completeDescrizPagaDistinta"
|
||||
no-loop
|
||||
when
|
||||
eval(completeRulesEnabled)
|
||||
$vtbDistIncar : VtbDistIncar(descrizPaga == null && codPaga != null)
|
||||
then
|
||||
String sql = "SELECT descrizione FROM gtb_paga WHERE cod_paga = " + UtilityDB.valueToString($vtbDistIncar.getCodPaga());
|
||||
String descrPaga = UtilityDB.executeSimpleQueryOnlyFirstRowFirstColumn(conn, sql);
|
||||
|
||||
modify($vtbDistIncar){
|
||||
setDescrizPaga(descrPaga)
|
||||
}
|
||||
end
|
||||
|
||||
rule "completeFlagTipoFatturazione"
|
||||
no-loop
|
||||
when
|
||||
|
||||
Reference in New Issue
Block a user