From 1b0664aeae0d7483179ffb2b35eb5b25aacbb12f Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 14 Mar 1995 17:17:49 +0000 Subject: [PATCH] MOdificato importo git-svn-id: svn://10.65.10.50/trunk@1122 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/conto.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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"); }