diff --git a/cg/cg2103.h b/cg/cg2103.h index be07377cb..b19bcf1d4 100755 --- a/cg/cg2103.h +++ b/cg/cg2103.h @@ -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"); } diff --git a/cg/conto.cpp b/cg/conto.cpp index ee66e0f69..af7129294 100755 --- a/cg/conto.cpp +++ b/cg/conto.cpp @@ -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(); diff --git a/cg/conto.h b/cg/conto.h index fdd5f797c..295dc9479 100755 --- a/cg/conto.h +++ b/cg/conto.h @@ -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); };