Skip to content

Commit

Permalink
BugID: 1345 Nuovo Piani dei Conti
Browse files Browse the repository at this point in the history
  • Loading branch information
rpucciarelli committed Jan 26, 2015
1 parent 9b7ee77 commit 0b14fa1
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -237,7 +237,7 @@ public void validate(OggettoBulk oggettoBulk) throws ValidationException {
if(getIm_variazione() != null && getIm_variazione().compareTo(Utility.ZERO) > 0)
throw new ValidationException("L'importo delle righe di variazione deve essere negativo per le Economie.");
}
if(this.getElemento_voce()!=null && this.getElemento_voce().getFl_azzera_residui()!=null && this.getElemento_voce().getFl_azzera_residui() && this.getIm_variazione().compareTo(BigDecimal.ZERO)>0)
if(this.getElemento_voce()!=null && this.getElemento_voce().getFl_azzera_residui()!=null && this.getElemento_voce().getFl_azzera_residui() && this.getIm_variazione()!=0 && this.getIm_variazione().compareTo(BigDecimal.ZERO)>0)
throw new ValidationException ("Attenzione non può essere predisposta una variazione positiva sulla voce "+this.getElemento_voce().getCd_elemento_voce());

for (java.util.Iterator i = var_stanz_res.getRigaVariazione().iterator();i.hasNext();) {
Expand Down

0 comments on commit 0b14fa1

Please sign in to comment.