Skip to content

Commit

Permalink
Modifica data annullamento messa sempre o sysdate o 31/12
Browse files Browse the repository at this point in the history
  • Loading branch information
rosangela.pucciarelli committed Jan 16, 2017
1 parent 3446d93 commit ee96f28
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 31 deletions.
Expand Up @@ -1323,25 +1323,28 @@ public MandatoBulk annullaMandato(UserContext userContext,

lockBulk(userContext, mandato);

if (DateServices.isAnnoMaggEsScriv(userContext)) {
// Se la data di annullamento NON E' NULLA, e siamo in esercizio
// successivo, metto
// la data di trasmissione = ad istante successivo a quella di
// annullamento
if (mandato.getDt_trasmissione() != null) {
mandato.setDt_annullamento(DateServices.getNextMinTs(
userContext, mandato.getDt_trasmissione()));
} else {
mandato
.setDt_annullamento(DateServices
.getMidDayTs(DateServices
.getTs_valido(userContext)));
}
} else {
mandato.setDt_annullamento(DateServices
.getTs_valido(userContext));
}

// if (DateServices.isAnnoMaggEsScriv(userContext)) {
// // Se la data di annullamento NON E' NULLA, e siamo in esercizio
// // successivo, metto
// // la data di trasmissione = ad istante successivo a quella di
// // annullamento
// if (mandato.getDt_trasmissione() != null) {
// mandato.setDt_annullamento(DateServices.getNextMinTs(
// userContext, mandato.getDt_trasmissione()));
// } else {
// mandato
// .setDt_annullamento(DateServices
// .getMidDayTs(DateServices
// .getTs_valido(userContext)));
// }
// } else {
// mandato.setDt_annullamento(DateServices
// .getTs_valido(userContext));
// //}
// modifica 16/01/2017 messa sempre o sysdate o 31/12
mandato.setDt_annullamento(DateServices
.getTs_valido(userContext));

if (mandato.getStato_coge().equals(mandato.STATO_COGE_C))
mandato.setStato_coge(mandato.STATO_COGE_R);
if (!MandatoBulk.TIPO_REGOLARIZZAZIONE.equals(mandato
Expand Down
Expand Up @@ -1009,18 +1009,19 @@ public ReversaleBulk annullaReversale(UserContext userContext, ReversaleBulk rev

lockBulk( userContext, reversale );

if(DateServices.isAnnoMaggEsScriv(userContext)) {
// Se la data di annullamento NON E' NULLA, e siamo in esercizio successivo, metto
// la data di trasmissione = ad istante successivo a quella di annullamento
if(reversale.getDt_trasmissione() != null) {
reversale.setDt_annullamento( DateServices.getNextMinTs( userContext,reversale.getDt_trasmissione()));
} else {
reversale.setDt_annullamento( DateServices.getMidDayTs( DateServices.getTs_valido( userContext)));
}
} else {
reversale.setDt_annullamento( DateServices.getTs_valido( userContext));
}

// if(DateServices.isAnnoMaggEsScriv(userContext)) {
// // Se la data di annullamento NON E' NULLA, e siamo in esercizio successivo, metto
// // la data di trasmissione = ad istante successivo a quella di annullamento
// if(reversale.getDt_trasmissione() != null) {
// reversale.setDt_annullamento( DateServices.getNextMinTs( userContext,reversale.getDt_trasmissione()));
// } else {
// reversale.setDt_annullamento( DateServices.getMidDayTs( DateServices.getTs_valido( userContext)));
// }
// } else {
// reversale.setDt_annullamento( DateServices.getTs_valido( userContext));
// }

reversale.setDt_annullamento( DateServices.getTs_valido( userContext));

if ( reversale.getStato_coge().equals( MandatoBulk.STATO_COGE_C ))
reversale.setStato_coge( MandatoBulk.STATO_COGE_R);
Expand Down

0 comments on commit ee96f28

Please sign in to comment.