Aggiunto metodo sospeso
git-svn-id: svn://10.65.10.50/trunk@596 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
3ef2246377
commit
e10d4efad8
@ -39,6 +39,7 @@ public:
|
|||||||
int tipo() const;
|
int tipo() const;
|
||||||
TipoIVA iva() const;
|
TipoIVA iva() const;
|
||||||
bool corrispettivi() const;
|
bool corrispettivi() const;
|
||||||
|
bool sospeso() const { return _rec.get_bool("B1");}
|
||||||
const TString& name() const;
|
const TString& name() const;
|
||||||
int year() const;
|
int year() const;
|
||||||
TDate last_reg() const { return _rec.get_date("D2"); }
|
TDate last_reg() const { return _rec.get_date("D2"); }
|
||||||
|
@ -171,6 +171,7 @@ bool TBill::read(TRectype &r)
|
|||||||
r = pcon.curr();
|
r = pcon.curr();
|
||||||
_tipo_cr = r.get_int("TIPOSPRIC");
|
_tipo_cr = r.get_int("TIPOSPRIC");
|
||||||
_descrizione = r.get("DESCR");
|
_descrizione = r.get("DESCR");
|
||||||
|
_sospeso = r.get_bool("SOSPESO");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
r.zero();
|
r.zero();
|
||||||
|
@ -16,6 +16,7 @@ class TBill : public TSortable
|
|||||||
long _sottoconto; // Sottoconto, codice cliente o fornitore
|
long _sottoconto; // Sottoconto, codice cliente o fornitore
|
||||||
TString80 _descrizione; // Vuota fino alla chiamata di describe
|
TString80 _descrizione; // Vuota fino alla chiamata di describe
|
||||||
int _tipo_cr; // Tipo costo/ricavo
|
int _tipo_cr; // Tipo costo/ricavo
|
||||||
|
bool _sospeso;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
virtual int compare(const TSortable& s) const;
|
virtual int compare(const TSortable& s) const;
|
||||||
@ -51,6 +52,7 @@ public:
|
|||||||
|
|
||||||
int tipo_att();
|
int tipo_att();
|
||||||
bool read(TRectype& r);
|
bool read(TRectype& r);
|
||||||
|
bool sospeso() const { return _sospeso;} // _sospeso e' letto nella read()
|
||||||
|
|
||||||
const char* string(int mode = 0);
|
const char* string(int mode = 0);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user