From 8a6ba17ebb13ce2adf0d894e0bda6af840e9e50c Mon Sep 17 00:00:00 2001 From: villa Date: Tue, 13 Feb 1996 09:37:14 +0000 Subject: [PATCH] Puttanatina arrotondamento iniziale git-svn-id: svn://10.65.10.50/trunk@2591 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/pagament.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cg/pagament.cpp b/cg/pagament.cpp index 7f39089aa..47a6c34a6 100755 --- a/cg/pagament.cpp +++ b/cg/pagament.cpp @@ -1645,7 +1645,6 @@ void TPagamento::set_rate_auto() { // usa la percentuale per la prima rata r1 = (toslice * perc_rata(first))/real(100.0); - r1.round(v); const real reminder = toslice - r1; if (!reminder.is_zero()) @@ -1655,7 +1654,8 @@ void TPagamento::set_rate_auto() } } else - r1 = toslice; + r1 = toslice; + r1.round(round(v)); } for (int i = first; i < n_rate(); i++)