MOdificato importo

git-svn-id: svn://10.65.10.50/trunk@1122 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1995-03-14 17:17:49 +00:00
parent b4d4b306f4
commit 1b0664aeae

View File

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