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++)