From d214c1446980dfe772fdc6438a72c3932d8f80f5 Mon Sep 17 00:00:00 2001 From: angelo Date: Wed, 2 Oct 1996 16:24:00 +0000 Subject: [PATCH] Correzione MI2164... Speriamo che si decidano una buona volta. Sta wallera di prorata non sanno nemmeno loro quando stamparlo. git-svn-id: svn://10.65.10.50/trunk@3701 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg4301.cpp | 8 ++++++-- cg/cg4304.cpp | 3 +-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/cg/cg4301.cpp b/cg/cg4301.cpp index e3fccc547..4e0030d1f 100755 --- a/cg/cg4301.cpp +++ b/cg/cg4301.cpp @@ -1579,8 +1579,12 @@ void TLiquidazione_app::write_liq(int month, const char* codatts) if (prorata != _prorata) { // calcolo conguaglio -- se positivo e' a debito - real topay = (iaq + ppg) * (prorata / CENTO); - topay.round(ROUND_MILLELIRE); + real topay; + if (prorata > 0.0) + { + topay = (iaq + ppg) * (prorata / CENTO); + topay.round(ROUND_MILLELIRE); + } conguaglio = topay - ppg; conguaglio.round(ROUND_MILLELIRE); } diff --git a/cg/cg4304.cpp b/cg/cg4304.cpp index cef21e269..6eefd417a 100755 --- a/cg/cg4304.cpp +++ b/cg/cg4304.cpp @@ -1750,8 +1750,7 @@ bool TLiquidazione_app::set_annual(_DescrItem& d) set_print_zero(TRUE); set_row(row++,""); //set_row(row++,"CALCOLO DELLA PERCENTUALE DI INDETRAIBILITA'"); - if (d._r2 > 0.0) - set_row(row++, "%% PRO-RATA ed IVA non detraibile (%s%%)@69g%r", + set_row(row++, "%% PRO-RATA ed IVA non detraibile (%s%%)@69g%r", (const char*)(d._r2.string()), &(d._r6)); //set_row(row++,""); set_row(row++,"Operazioni esenti riga B1@30g%r", &(d._r1));