Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
FIX cancellazione allegato proveniente da Missioni
  • Loading branch information
mspasiano committed Feb 16, 2018
1 parent 5f0cb8e commit fbd7b1e
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -2207,8 +2207,12 @@ private void archiviaAllegatiMissioneDettagli() throws ApplicationException, Bus
for (Iterator<AllegatoMissioneDettaglioSpesaBulk> iterator = dettaglio.getDettaglioSpesaAllegati().deleteIterator(); iterator.hasNext(); ) {
AllegatoMissioneDettaglioSpesaBulk allegato = iterator.next();
if (allegato.isToBeDeleted()) {
missioniCMISService.delete(allegato.getStorageKey());
allegato.setCrudStatus(OggettoBulk.NORMAL);
if (!isDocumentoDettaglioProvenienteDaGemis(allegato)) {
missioniCMISService.delete(allegato.getStorageKey());
allegato.setCrudStatus(OggettoBulk.NORMAL);
} else {
throw new ApplicationException("Cancellazione non possibile! Documento proveniente dalla procedura Missioni");
}
}
}
}
Expand Down

0 comments on commit fbd7b1e

Please sign in to comment.