Skip to content

Commit

Permalink
Ripristinato controllo modifiche
Browse files Browse the repository at this point in the history
  • Loading branch information
rosangela.pucciarelli committed Feb 17, 2017
1 parent 0275060 commit d7d0a6b
Showing 1 changed file with 15 additions and 15 deletions.
Expand Up @@ -312,11 +312,11 @@ protected void aggiornaStatoMandato(UserContext userContext,
new MandatoIBulk(docContabile.getCd_cds(), docContabile
.getEsercizio(), docContabile.getPg_documento_cont()));

// if ( mandato.getPg_ver_rec().compareTo( docContabile.getPg_ver_rec())
// != 0 )
// throw new ApplicationException("Attenzione! Il mandato " +
// mandato.getPg_mandato() +
// " non e' più valido perche' stato modificato." );
if ( mandato.getPg_ver_rec().compareTo( docContabile.getPg_ver_rec())
!= 0 )
throw new ApplicationException("Attenzione! Il mandato " +
mandato.getPg_mandato() +
" non e' più valido perche' stato modificato." );
if(mandato.isAnnullato())
mandato.setStato_trasmissione_annullo(stato_trasmissione);
else
Expand Down Expand Up @@ -408,11 +408,11 @@ protected void aggiornaStatoMandatoAccreditamento(UserContext userContext,
new MandatoAccreditamentoBulk(docContabile.getCd_cds(),
docContabile.getEsercizio(), docContabile
.getPg_documento_cont()));
// if ( mandato.getPg_ver_rec().compareTo( docContabile.getPg_ver_rec())
// != 0 )
// throw new ApplicationException("Attenzione! Il mandato " +
// mandato.getPg_mandato() +
// " non e' più valido perche' stato modificato." );
if ( mandato.getPg_ver_rec().compareTo( docContabile.getPg_ver_rec())
!= 0 )
throw new ApplicationException("Attenzione! Il mandato " +
mandato.getPg_mandato() +
" non e' più valido perche' stato modificato." );

mandato.setStato_trasmissione(stato_trasmissione);

Expand Down Expand Up @@ -504,11 +504,11 @@ protected void aggiornaStatoReversale(UserContext userContext,
ReversaleIBulk.class).findAndLock(
new ReversaleIBulk(docContabile.getCd_cds(), docContabile
.getEsercizio(), docContabile.getPg_documento_cont()));
// if ( reversale.getPg_ver_rec().compareTo(
// docContabile.getPg_ver_rec()) != 0 )
// throw new ApplicationException("Attenzione! La reversale " +
// reversale.getPg_reversale() +
// " non e' più valida perche' stata modificata." );
if ( reversale.getPg_ver_rec().compareTo(
docContabile.getPg_ver_rec()) != 0 )
throw new ApplicationException("Attenzione! La reversale " +
reversale.getPg_reversale() +
" non e' più valida perche' stata modificata." );
if(reversale.isAnnullato())
reversale.setStato_trasmissione_annullo(stato_trasmissione);
else
Expand Down

0 comments on commit d7d0a6b

Please sign in to comment.