diff --git a/lv/lv2500.cpp b/lv/lv2500.cpp index e5db321f1..188ec54d7 100755 --- a/lv/lv2500.cpp +++ b/lv/lv2500.cpp @@ -208,8 +208,25 @@ void TFatturazione_lavanderie::post_process_output(TLista_documenti& doc_out) break; case 4: { - rout.put(RDOC_PREZZO, rcont.get_real(LVRCONDV_VALCONV)); - rout.put(RDOC_QTA, dot*rcont.get_real(LVRCONDV_FORFPERCL)); + const real qta=rout.get(RDOC_QTA); + const real consumo=qta * rout.get_real(RDOC_PREZZO); + const real impconv=dot * rcont.get_real(LVRCONDV_VALCONV) * rcont.get_real(LVRCONDV_FORFPERCL); + if (consumo