Patch level : 12.0
Files correlati : Aggiunta cache di causali git-svn-id: svn://10.65.10.50/branches/R_10_00@23451 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
9d06c06c6f
commit
62a00e2afc
194
src/cg/cg2103.h
194
src/cg/cg2103.h
@ -1,96 +1,100 @@
|
||||
#ifndef __CG2103_H
|
||||
#define __CG2103_H
|
||||
|
||||
// Registri ed esercizi
|
||||
#ifndef __CGLIB01_H
|
||||
#include "cglib01.h"
|
||||
#endif
|
||||
|
||||
class TCausale : public TArray
|
||||
{
|
||||
TRectype _rec;
|
||||
TRegistro _reg;
|
||||
|
||||
TipoIVA _iva;
|
||||
bool _corrisp;
|
||||
char _sezione_clifo, _sezione_ritsoc, _sezione_ritfis, _sezione_revcharge, _provvisorio;
|
||||
|
||||
protected:
|
||||
const TRectype* row(int num) const { return (const TRectype*)objptr(num); }
|
||||
void calcIVA();
|
||||
|
||||
public: // TObject
|
||||
virtual bool ok() const;
|
||||
|
||||
public:
|
||||
TBill& bill(int num, TBill& c) const;
|
||||
|
||||
const char* codice() const;
|
||||
const char* descrizione() const;
|
||||
const char* cod_desc_agg(int num) const;
|
||||
const char* desc_agg(int num) const;
|
||||
|
||||
bool data_doc() const;
|
||||
bool num_doc() const;
|
||||
bool apertura() const;
|
||||
bool chiusura() const;
|
||||
bool sezionale() const;
|
||||
bool valuta() const;
|
||||
bool intra() const;
|
||||
bool valintra() const;
|
||||
bool soloiva() const;
|
||||
bool reverse_charge() const;
|
||||
char provvisorio() const { return _provvisorio; }
|
||||
const TString& causale_collegata() const;
|
||||
const TString& causale_reg_iva() const;
|
||||
const TString& tipo_doc() const;
|
||||
|
||||
TRegistro& reg() const { return (TRegistro&)_reg; }
|
||||
TipoIVA iva() const { return _iva; }
|
||||
int regime_speciale() const;
|
||||
bool corrispettivi() const { return _corrisp; }
|
||||
bool esclusione_allegati() const;
|
||||
|
||||
// bill deve essere il conto di ricavo
|
||||
bool IVA2bill(const TCodiceIVA& iva, TBill& bill) const;
|
||||
|
||||
tipo_movimento tipomov() const;
|
||||
const TString& tipodoc() const;
|
||||
bool saldaconto(const TDate& datareg) const;
|
||||
int link_m770() const;
|
||||
char link_cespiti() const;
|
||||
bool link_analitica() const;
|
||||
bool link_industriale() const;
|
||||
|
||||
const TString& compatible(const TCausale& c) const;
|
||||
|
||||
char sezione(int riga) const;
|
||||
char sezione_clifo() const;
|
||||
char sezione_ritsoc() const;
|
||||
char sezione_ritfis() const;
|
||||
char sezione_revcharge() const ;
|
||||
|
||||
virtual bool read(const char* cod, int year);
|
||||
|
||||
TCausale(const char* code = "", int year = 0);
|
||||
virtual ~TCausale() {}
|
||||
};
|
||||
|
||||
// Fatture
|
||||
#define RIGA_IVA_DETRAIBILE 3
|
||||
#define RIGA_IVA_NON_DETRAIBILE 4
|
||||
#define RIGA_RITENUTE_FISCALI 8
|
||||
#define RIGA_RITENUTE_SOCIALI 9
|
||||
#define RIGA_IVA_DIFFERITA 10
|
||||
#define RIGA_IVA_PER_CASSA 11
|
||||
#define RIGA_REVERSE_CHARGE 12
|
||||
|
||||
// Pagamenti
|
||||
#define RIGA_ABBUONI_PASSIVI 9
|
||||
#define RIGA_ABBUONI_ATTIVI 10
|
||||
#define RIGA_SPESE 11
|
||||
#define RIGA_PAG_RITFIS 12
|
||||
#define RIGA_DIFFCAM 13
|
||||
#define RIGA_PAG_RITSOC 14
|
||||
|
||||
#ifndef __CG2103_H
|
||||
#define __CG2103_H
|
||||
|
||||
// Registri ed esercizi
|
||||
#ifndef __CGLIB01_H
|
||||
#include "cglib01.h"
|
||||
#endif
|
||||
|
||||
class TCausale : public TArray
|
||||
{
|
||||
TRectype _rec;
|
||||
TRegistro _reg;
|
||||
|
||||
TipoIVA _iva;
|
||||
bool _corrisp;
|
||||
char _sezione_clifo, _sezione_ritsoc, _sezione_ritfis, _sezione_revcharge, _provvisorio;
|
||||
int _regolarizzazione;
|
||||
|
||||
protected:
|
||||
const TRectype* row(int num) const { return (const TRectype*)objptr(num); }
|
||||
void calcIVA();
|
||||
|
||||
public: // TObject
|
||||
virtual bool ok() const;
|
||||
|
||||
public:
|
||||
TBill& bill(int num, TBill& c) const;
|
||||
|
||||
const char* codice() const;
|
||||
const char* descrizione() const;
|
||||
const char* cod_desc_agg(int num) const;
|
||||
const char* desc_agg(int num) const;
|
||||
|
||||
bool data_doc() const;
|
||||
bool num_doc() const;
|
||||
bool apertura() const;
|
||||
bool chiusura() const;
|
||||
bool sezionale() const;
|
||||
bool valuta() const;
|
||||
bool intra() const;
|
||||
bool valintra() const;
|
||||
bool soloiva() const;
|
||||
bool reverse_charge() const;
|
||||
bool regolarizzazione();
|
||||
char provvisorio() const { return _provvisorio; }
|
||||
const TString& causale_collegata() const;
|
||||
const TString& causale_reg_iva() const;
|
||||
const TString& tipo_doc() const;
|
||||
|
||||
TRegistro& reg() const { return (TRegistro&)_reg; }
|
||||
TipoIVA iva() const { return _iva; }
|
||||
int regime_speciale() const;
|
||||
bool corrispettivi() const { return _corrisp; }
|
||||
bool esclusione_allegati() const;
|
||||
|
||||
// bill deve essere il conto di ricavo
|
||||
bool IVA2bill(const TCodiceIVA& iva, TBill& bill) const;
|
||||
|
||||
tipo_movimento tipomov() const;
|
||||
const TString& tipodoc() const;
|
||||
bool saldaconto(const TDate& datareg) const;
|
||||
int link_m770() const;
|
||||
char link_cespiti() const;
|
||||
bool link_analitica() const;
|
||||
bool link_industriale() const;
|
||||
|
||||
const TString& compatible(const TCausale& c) const;
|
||||
|
||||
char sezione(int riga) const;
|
||||
char sezione_clifo() const;
|
||||
char sezione_ritsoc() const;
|
||||
char sezione_ritfis() const;
|
||||
char sezione_revcharge() const ;
|
||||
|
||||
virtual bool read(const char* cod, int year);
|
||||
|
||||
TCausale(const char* code = "", int year = 0);
|
||||
virtual ~TCausale() {}
|
||||
};
|
||||
|
||||
const TCausale & cached_causale(const char * codcaus, const int year);
|
||||
|
||||
// Fatture
|
||||
#define RIGA_IVA_DETRAIBILE 3
|
||||
#define RIGA_IVA_NON_DETRAIBILE 4
|
||||
#define RIGA_RITENUTE_FISCALI 8
|
||||
#define RIGA_RITENUTE_SOCIALI 9
|
||||
#define RIGA_IVA_DIFFERITA 10
|
||||
#define RIGA_IVA_PER_CASSA 11
|
||||
#define RIGA_REVERSE_CHARGE 12
|
||||
|
||||
// Pagamenti
|
||||
#define RIGA_ABBUONI_PASSIVI 9
|
||||
#define RIGA_ABBUONI_ATTIVI 10
|
||||
#define RIGA_SPESE 11
|
||||
#define RIGA_PAG_RITFIS 12
|
||||
#define RIGA_DIFFCAM 13
|
||||
#define RIGA_PAG_RITSOC 14
|
||||
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user