Skip to content

Commit

Permalink
gestito il collegamento all'inventario anche per i generici di reinte…
Browse files Browse the repository at this point in the history
…gro del fondo
  • Loading branch information
rpucciarelli committed Feb 29, 2012
1 parent 4ac1255 commit 916527e
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -5239,11 +5239,11 @@ private void controllaQuadraturaInventario(UserContext auc, Documento_genericoBu
for (Iterator i=associazioni.iterator();i.hasNext();){
Buono_carico_scarico_dettBulk ass=(Buono_carico_scarico_dettBulk)i.next();
ass.setBene((Inventario_beniBulk)getHome(auc, Inventario_beniBulk.class).findByPrimaryKey(ass.getBene()));

if (documento.getCd_tipo_doc_amm().compareTo(documento.GENERICO_S)==0)
totale_inv=totale_inv.add(ass.getValore_unitario());
else
// per gestire l'inventario anche per i generici di reintegro del fondo
if (documento.getTipo_documento().getTi_entrata_spesa().compareTo(documento.GENERICO_E)==0)
totale_inv=totale_inv.add(ass.getBene().getValore_alienazione());
else
totale_inv=totale_inv.add(ass.getValore_unitario());
}
} catch (PersistencyException e) {
throw handleException(e);
Expand Down

0 comments on commit 916527e

Please sign in to comment.