|
|
|
@ -241,7 +241,10 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl {
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
public IntPratica deleteIntPratica(IntPratica intPratica, boolean forced) throws SystemException, PortalException { |
|
|
|
|
if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced) { |
|
|
|
|
|
|
|
|
|
int contoDett = dettPraticaPersistence.countByIntPraticaId(intPratica.getIntPraticaId()); |
|
|
|
|
|
|
|
|
|
if (intPratica.getStatus() == WorkflowConstants.STATUS_ANY || forced || contoDett==1) { |
|
|
|
|
if (Validator.isNotNull(intPratica.getDocPraticaAnnullamentoId())) { |
|
|
|
|
deleteFileAnnullamento(intPratica.getDocPraticaAnnullamentoId()); |
|
|
|
|
} |
|
|
|
|