diff --git a/cg/conto.cpp b/cg/conto.cpp index 958a30f43..7cdfda860 100755 --- a/cg/conto.cpp +++ b/cg/conto.cpp @@ -8,7 +8,7 @@ // Certified 90% TBill::TBill(TToken_string& s, int from, int mode) -: _tipo_cr(-1) +: _tipo_cr(-1), _sezione(' ') { const char* first = s.get(from); if (mode & 0x1) @@ -41,6 +41,8 @@ const TBill& TBill::copy(const TBill& bill) _sottoconto = bill._sottoconto; _descrizione = bill._descrizione; _tipo_cr = bill._tipo_cr; + _sospeso = bill._sospeso; + _sezione = bill._sezione; return *this; } @@ -126,7 +128,11 @@ bool TBill::find() if (ok) { _descrizione = clifo.get("RAGSOC"); - if (_tipo_cr < 0) _tipo_cr = 0; + if (_tipo_cr < 0) + { + _tipo_cr = 0; + _sezione = ' '; + } _sospeso = clifo.get_bool("SOSPESO"); const char tipoa = clifo.get_char("TIPOAPER"); @@ -161,7 +167,8 @@ bool TBill::read(TRectype &r) if (err == NOERR) { r = pcon.curr(); - _tipo_cr = r.get_int("TIPOSPRIC"); + _tipo_cr = r.get_int("TIPOSPRIC"); + _sezione = r.get_char("SEZSALDI"); _descrizione = r.get("DESCR"); _sospeso = r.get_bool("SOSPESO"); }