Skip to content

Commit

Permalink
Merge branch '3.7.x' of github.com:link-it/govpay into 3.7.x
Browse files Browse the repository at this point in the history
  • Loading branch information
nardil committed Dec 7, 2023
2 parents 23f007d + 07a4d10 commit 586587c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public static String spedizioneNotifiche(IContext ctx){
numeroErrori ++;
}
int numOk = threads.size() - numeroErrori;
log.debug(MessageFormat.format(DEBUG_MSG_COMPLETATA_ESECUZIONE_DEI_0_THREADS_OK_1_ERRORE_2, threads.size(), numOk, numeroErrori));
log.debug(DEBUG_MSG_COMPLETATA_ESECUZIONE_DEI_0_THREADS_OK_1_ERRORE_2, threads.size(), numOk, numeroErrori);
break; // esco
}
}
Expand Down Expand Up @@ -459,7 +459,7 @@ public static String spedizioneNotificheAppIO(IContext ctx){
numeroErrori ++;
}
int numOk = threads.size() - numeroErrori;
log.debug(MessageFormat.format(DEBUG_MSG_COMPLETATA_ESECUZIONE_DEI_0_THREADS_OK_1_ERRORE_2, threads.size(), numOk, numeroErrori));
log.debug(DEBUG_MSG_COMPLETATA_ESECUZIONE_DEI_0_THREADS_OK_1_ERRORE_2, threads.size(), numOk, numeroErrori);
break; // esco
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -322,20 +322,25 @@ private ElencoVoci getElencoVoci(CtReceipt rt, List<CtTransferPA> datiSingoloPag


private void setDataApplicativa(RicevutaTelematicaInput input, Date dataRt) {
Calendar cRt = Calendar.getInstance();
cRt.setTime(dataRt);

input.setDataApplicativa( this.sdfSoloData.format(dataRt));
if(dataRt != null) {
input.setDataApplicativa( this.sdfSoloData.format(dataRt));
} else {
input.setDataApplicativa("--");
}
}


private void setDataOperazione(RicevutaTelematicaInput input, Date dataRpt) {
Calendar cRpt = Calendar.getInstance();
cRpt.setTime(dataRpt);
if((cRpt.get(Calendar.HOUR_OF_DAY) + cRpt.get(Calendar.MINUTE) + cRpt.get(Calendar.SECOND)) == 0) {
input.setDataOperazione( this.sdfSoloData.format(dataRpt));
if(dataRpt != null) {
Calendar cRpt = Calendar.getInstance();
cRpt.setTime(dataRpt);
if((cRpt.get(Calendar.HOUR_OF_DAY) + cRpt.get(Calendar.MINUTE) + cRpt.get(Calendar.SECOND)) == 0) {
input.setDataOperazione( this.sdfSoloData.format(dataRpt));
} else {
input.setDataOperazione( this.sdfDataOraMinuti.format(dataRpt));
}
} else {
input.setDataOperazione( this.sdfDataOraMinuti.format(dataRpt));
input.setDataOperazione("--");
}
}

Expand Down

0 comments on commit 586587c

Please sign in to comment.