Aggiunto metodo sospeso

git-svn-id: svn://10.65.10.50/trunk@596 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
nik 1994-11-11 10:17:51 +00:00
parent 3ef2246377
commit e10d4efad8
3 changed files with 6 additions and 2 deletions

View File

@ -39,6 +39,7 @@ public:
int tipo() const;
TipoIVA iva() const;
bool corrispettivi() const;
bool sospeso() const { return _rec.get_bool("B1");}
const TString& name() const;
int year() const;
TDate last_reg() const { return _rec.get_date("D2"); }

View File

@ -171,6 +171,7 @@ bool TBill::read(TRectype &r)
r = pcon.curr();
_tipo_cr = r.get_int("TIPOSPRIC");
_descrizione = r.get("DESCR");
_sospeso = r.get_bool("SOSPESO");
}
else
r.zero();

View File

@ -16,7 +16,8 @@ class TBill : public TSortable
long _sottoconto; // Sottoconto, codice cliente o fornitore
TString80 _descrizione; // Vuota fino alla chiamata di describe
int _tipo_cr; // Tipo costo/ricavo
bool _sospeso;
protected:
virtual int compare(const TSortable& s) const;
virtual const char* class_name() const { return "Conto"; }
@ -51,7 +52,8 @@ public:
int tipo_att();
bool read(TRectype& r);
bool sospeso() const { return _sospeso;} // _sospeso e' letto nella read()
const char* string(int mode = 0);
};