Corretto errore 1121

git-svn-id: svn://10.65.10.50/trunk@427 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 1994-10-20 13:13:12 +00:00
parent 2876f55ef1
commit f354309200
2 changed files with 5 additions and 3 deletions

View File

@ -106,7 +106,7 @@ class TSaldo_agg : public TObject
TDate _data_ulmov; // data ultimo movimento
long _num_ulmov; // numero ultimo movimento
TRectype * _rec; // record corrente sui saldi
TConto& tconti() { return *(TConto*)_tab_conti.get(); }
THash_object * tconti() { return _tab_conti.get_hashobj(); }
public:
void clear_saldi(int year);

View File

@ -166,10 +166,12 @@ void TSaldo_agg::registra()
_tab_conti.restart();
for (int i=0; i < conti; i++)
{
TConto& tcon = tconti();
THash_object * hobj = tconti();
TConto & tcon = hobj->obj();
if (!tcon.ok()) continue;
saldi.zero();
saldi.put(SLD_ANNOES, anno_es());
saldi.put(SLD_ANNOES, atoi(hobj->key().left(4)) );
saldi.put(SLD_GRUPPO, tcon.gruppo());
saldi.put(SLD_CONTO, tcon.conto());
saldi.put(SLD_SOTTOCONTO, tcon.sottoconto());