Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
2024-09-30 12:19:25 +02:00
2 changed files with 9 additions and 5 deletions

View File

@@ -93,7 +93,9 @@ when
$entity : CtbMovt(operation == OperationType.DELETE)
eval(AccountingRules.checkDeleteMov(conn, $entity.getNumCmov()))
then
throw new CheckConstraintException("Attenzione!Impossibile cancellare il movimento. Ci sono altri movimenti contabile che fanno riferimento alla partita agganciata");
throw new CheckConstraintException(
String.format("Attenzione!Impossibile cancellare il movimento %s. Ci sono altri movimenti contabile che fanno riferimento alla partita agganciata",
$entity.getNumCmov()));
end
rule "checkImpScadenzeImpPartita"

View File

@@ -74,8 +74,8 @@ public class RossoGarganoSyncService {
savePdc(rgExchange.getConnection());
logger.info("Importazione Conti del piano dei conti: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
// saveFornitori(rgExchange.getConnection());
// logger.info("Importazione Fornitori dei conti: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
saveFornitori(rgExchange.getConnection());
logger.info("Importazione Fornitori dei conti: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
deleteCtbMovt(rgExchange.getConnection());
logger.info("Cancellazione movimenti contabili: Timing " + ((new Date().getTime() - startDate.getTime()) / 1000) + " secs");
@@ -351,6 +351,9 @@ public class RossoGarganoSyncService {
}
}
getCtbPart(sourceData, ctbMovt, c);
} else {
numDoc = UtilityHashMap.<BigDecimal>getValueIfExists(c, "PN_NRO_DOCUMENTO").intValue();
ctbMovt.setNumDoc(numDoc);
}
if (pnCausaleMovimento.equalsIgnoreCase("998")) {
@@ -813,8 +816,7 @@ public class RossoGarganoSyncService {
"WHERE (cl_codice IN (SELECT LTRIM(pn_cod_anag)\n" +
" FROM pnota\n" +
" WHERE pn_cod_anag LIKE '9%'\n" +
" AND pn_data_competenza >= 20180101)\n" +
" AND cl_codice IN ('90383100', '90383200') OR\n" +
" AND pn_data_competenza >= 20180101) OR \n" +
" (CONVERT(DATETIME, CAST(cl_data_inserimento AS VARCHAR), 112) >= DATEADD(MONTH, -1, GETDATE()) AND\n" +
" cl_rif_bilancio NOT IN ('24', '28', '32')))\n" +
" AND cl_codice LIKE '9%' \n" +