From 2405e0049601c689d4fa099dfcd0e69c8c1559d8 Mon Sep 17 00:00:00 2001 From: rajitgill Date: Tue, 14 Apr 2009 15:56:14 +0000 Subject: [PATCH] Patch level 10.0: Files correlati :lv2.exe Ricompilazione Demo : [ ] Commento : Gestione Val convenzionale in fatturazione git-svn-id: svn://10.65.10.50/trunk@18701 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- lv/lv2500.cpp | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) 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