Skip to content

Commit

Permalink
BUG sulle righe di fattura a zero
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Jun 19, 2015
1 parent be18371 commit 2cde4e1
Showing 1 changed file with 7 additions and 5 deletions.
Expand Up @@ -4057,7 +4057,7 @@ public boolean hasFatturaPassivaARowNotInventoried(
if (dettagli != null) {
while (dettagli.hasNext()) {
Fattura_passiva_rigaBulk riga = (Fattura_passiva_rigaBulk)dettagli.next();
if (riga.getBene_servizio().getFl_gestione_inventario().booleanValue() &&
if (riga.getBene_servizio() != null && riga.getBene_servizio().getFl_gestione_inventario().booleanValue() &&
!riga.isInventariato())
return true;
}
Expand Down Expand Up @@ -7266,10 +7266,12 @@ public void validaFatturaElettronica(UserContext aUC,Fattura_passivaBulk fattura
currentMap = mapIva;
}
}
if (currentMap.get(key)!=null)
currentMap.put(key, currentMap.get(key).add(riga.getIm_iva()));
else
currentMap.put(key, riga.getIm_iva());
if (key != null) {
if (currentMap.get(key)!=null)
currentMap.put(key, currentMap.get(key).add(riga.getIm_iva()));
else
currentMap.put(key, riga.getIm_iva());
}
}

Hashtable<String, BigDecimal> mapNaturaEle = new Hashtable<String, BigDecimal>(), mapIvaEle = new Hashtable<String, BigDecimal>();
Expand Down

0 comments on commit 2cde4e1

Please sign in to comment.