Skip to content

Commit

Permalink
Gestita tipologia mandato collegata a modalità di pagamento, inseriti…
Browse files Browse the repository at this point in the history
… controlli opportuni per predisposizione mandati, gestione mandati
  • Loading branch information
rosangela.pucciarelli committed May 20, 2016
1 parent faa64d3 commit 85c7231
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
Expand Up @@ -6524,6 +6524,17 @@ public Boolean isCollegamentoSospesoCompleto(UserContext userContext,
MandatoHome mandatoHome = (MandatoHome) getHome(userContext,mandato.getClass());
mandato = (MandatoBulk) mandatoHome.findByPrimaryKey(mandato);
if (mandato.isRequiredSospeso()) {

Sospeso_det_uscBulk sdu;
mandato.setSospeso_det_uscColl(new BulkList(
((MandatoHome) getHome(userContext, mandato.getClass()))
.findSospeso_det_usc(userContext, mandato)));
for (Iterator i = mandato.getSospeso_det_uscColl().iterator(); i.hasNext();) {
sdu = (Sospeso_det_uscBulk) i.next();
sdu.setMandato(mandato);
if (sdu.getStato().equals(sdu.STATO_ANNULLATO))
i.remove();
}
return mandato.isSospesoTotalmenteAssociato();
}
return Boolean.TRUE;
Expand Down
@@ -1,6 +1,7 @@
package it.cnr.contab.doccont00.core.bulk;

import it.cnr.contab.anagraf00.core.bulk.*;

import java.math.*;

import it.cnr.contab.compensi00.docs.bulk.CompensoBulk;
Expand Down Expand Up @@ -908,7 +909,14 @@ public boolean isRequiredSospeso(){
return (this.isRegolamentoSospeso());
}
public boolean isSospesoTotalmenteAssociato(){
if(getImTotaleSospesi().compareTo(this.getIm_mandato())==0)

BigDecimal imTotSospesi;
if (((MandatoIBulk) this).isFaiReversale())
imTotSospesi = this.getIm_mandato().subtract(
((MandatoIBulk) this).getImReversaleDiIncassoIVA());
else
imTotSospesi = this.getIm_mandato();
if(getImTotaleSospesi().compareTo(imTotSospesi)==0)
return true;
else
return false;
Expand Down

0 comments on commit 85c7231

Please sign in to comment.