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