Tolto assurdo controllo su saldo nullo in debug

git-svn-id: svn://10.65.10.50/branches/R_10_00@22807 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2013-02-14 10:22:26 +00:00
parent 82b76f399a
commit ab1eb5eb41

View File

@ -872,11 +872,10 @@ int TMov_mag::codice_esercizio(const TDate& d) const
return esercizi().date2esc(d);
}
void TMov_mag::update_balance(TRectype& rec, const char * fieldname, const real& val, const int sgn) const
void TMov_mag::update_balance(TRectype& rec, const char* fieldname, const real& val, const int sgn) const
{
if (sgn != 0)
if (sgn != 0 && !val.is_zero())
{
CHECK(!val.is_zero(), "Null balance");
if (sgn > 0)
rec.add(fieldname, val);
else