From 742f63f07a6ffd14f61be7115d62f8d571d87c50 Mon Sep 17 00:00:00 2001 From: villa Date: Fri, 26 Jan 1996 10:30:15 +0000 Subject: [PATCH] Ultime merdaglie arrotondamento git-svn-id: svn://10.65.10.50/trunk@2508 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/pagament.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cg/pagament.cpp b/cg/pagament.cpp index 88d323c14..5a99a0864 100755 --- a/cg/pagament.cpp +++ b/cg/pagament.cpp @@ -708,11 +708,12 @@ word TPagamento::validate() const } tot.round(_round); - - if (tot != _firstr+_secndr) + // serve per fatture in valuta, onde evitare cazzi e canguri + real tmax = _firstr + _secndr; + tmax.round(_round); + + if (tot != tmax) res |= P_TOTNC; - - // check errori date scadenze (se istanziate) TDate d(data_rata(0));