Ultime merdaglie arrotondamento

git-svn-id: svn://10.65.10.50/trunk@2508 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
villa 1996-01-26 10:30:15 +00:00
parent ca24f37ef5
commit 742f63f07a

View File

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