Merge branch 'master' into develop
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:
@@ -588,8 +588,8 @@ public class ActivityService {
|
||||
parentStbActivity.setEstimatedDate(startDateParent);
|
||||
}
|
||||
|
||||
if (parentStbActivity.getEstimatedEnddate() == null ||
|
||||
(parentStbActivity.getEstimatedEnddate() != null && parentStbActivity.getEstimatedEnddate().before(endDateParent))) {
|
||||
if (parentStbActivity.getEstimatedEndtime() == null ||
|
||||
(parentStbActivity.getEstimatedEndtime() != null && parentStbActivity.getEstimatedEndtime().before(endDateParent))) {
|
||||
parentStbActivity.setEstimatedEnddate(endDateParent);
|
||||
}
|
||||
|
||||
|
||||
@@ -455,12 +455,7 @@ public class AutofatturaService {
|
||||
String sql = "select e_mail from stb_email where flag_default_contabilita = 'S'";
|
||||
List<String> email = UtilityDB.executeSimpleQueryOnlyFirstColumn(conn, sql);
|
||||
Azienda azienda = Azienda.getDefaultAzienda(conn);
|
||||
if (email == null || email.isEmpty()) {
|
||||
mailService.sendSystemErrorLog("[" + model.getProfileName() + " - " + azienda.getNomeDitta() + "][" + UtilityServer.getHostName() + "] Verifica autofatture ",
|
||||
"Verifica autofatture",
|
||||
"Sull'azienda " + azienda.getNomeDitta() + " non è presente nessuna email con flag default contabilità, non sarà possibile inviare la mail di verifica.",
|
||||
(String) null, new Date());
|
||||
} else {
|
||||
|
||||
sql =
|
||||
"select Cast(ctb_movt.num_cmov as varchar) as num_cmov " +
|
||||
"from ctb_movt " +
|
||||
@@ -471,13 +466,19 @@ public class AutofatturaService {
|
||||
"not exists (SELECT num_cmov FROM crl_movt_rif_cmov WHERE ctb_movt.num_cmov = crl_movt_rif_cmov.num_cmov OR ctb_movt.num_cmov = crl_movt_rif_cmov.num_cmov_rif)";
|
||||
List<String> listMov = UtilityDB.executeSimpleQueryOnlyFirstColumn(conn, sql);
|
||||
if (listMov != null && !listMov.isEmpty()) {
|
||||
String elencoMovimenti = String.join(CommonConstants.A_CAPO, listMov);
|
||||
String elencoEmail = String.join(",", email);
|
||||
String message =
|
||||
"Attenzione i seguenti movimenti contabili non hanno la fattura di integrazione agganciata: " + CommonConstants.A_CAPO + elencoMovimenti;
|
||||
if (email == null || email.isEmpty()) {
|
||||
mailService.sendSystemErrorLog("[" + model.getProfileName() + " - " + azienda.getNomeDitta() + "][" + UtilityServer.getHostName() + "] Verifica autofatture ",
|
||||
"Verifica autofatture",
|
||||
"Sull'azienda " + azienda.getNomeDitta() + " non è presente nessuna email con flag default contabilità, non sarà possibile inviare la mail di verifica.",
|
||||
(String) null, new Date());
|
||||
} else {
|
||||
String elencoMovimenti = String.join(CommonConstants.A_CAPO, listMov);
|
||||
String elencoEmail = String.join(",", email);
|
||||
String message =
|
||||
"Attenzione i seguenti movimenti contabili non hanno la fattura di integrazione agganciata: " + CommonConstants.A_CAPO + elencoMovimenti;
|
||||
|
||||
mailService.sendMail(elencoEmail, null, "[" + model.getProfileName() + " - " + azienda.getNomeDitta() + "] Verifica autofatture ", message);
|
||||
}
|
||||
mailService.sendMail(elencoEmail, null, "[" + model.getProfileName() + " - " + azienda.getNomeDitta() + "] Verifica autofatture ", message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user