Skip to content

Commit

Permalink
Fix Assunzione impegno su progetto terminato: non consentiva di assum…
Browse files Browse the repository at this point in the history
…ere impegni su progetti terminati anche se la voce di bilancio prevedeva giorni di proroga.
  • Loading branch information
raffaelepagano committed Dec 13, 2019
1 parent ebc31d9 commit 5c62fd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ public Forward doRiportaSelezioneVoci(ActionContext context) throws java.rmi.Re
.filter(el->el.compareTo(0)>0)
.orElse(0);

localDateFineProgetto.plusDays(ggProroga);
localDateFineProgetto = localDateFineProgetto.plusDays(ggProroga);

if (localDateFineProgetto.isBefore(obbligazione.getDt_registrazione().toLocalDateTime().toLocalDate()))
throw new ApplicationMessageFormatException("Attenzione! GAE {0} non selezionabile. "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,7 @@ private void validaCdrLineaVoce(UserContext userContext, ObbligazioneBulk obblig
.filter(el->el.compareTo(0)>0)
.orElse(0);

localDateFineProgetto.plusDays(ggProroga);
localDateFineProgetto = localDateFineProgetto.plusDays(ggProroga);

if (localDateFineProgetto.isBefore(obbligazione.getDt_registrazione().toLocalDateTime().toLocalDate()))
throw new ApplicationMessageFormatException("Attenzione! GAE {0} non selezionabile. "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ private ObbligazioneBulk calcolaPercentualeImputazioneObbligazione (UserContext
.filter(el->el.compareTo(0)>0)
.orElse(0);

localDateFineProgetto.plusDays(ggProroga);
localDateFineProgetto = localDateFineProgetto.plusDays(ggProroga);

if (localDateFineProgetto.isBefore(EJBCommonServices.getServerDate().toLocalDateTime().toLocalDate()))
throw new ApplicationMessageFormatException("Attenzione! Aumento importo GAE {0} non consentito. "
Expand Down

0 comments on commit 5c62fd6

Please sign in to comment.