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:
bonazzi 2016-12-13 14:01:04 +00:00
parent 9d06c06c6f
commit 62a00e2afc

View File

@ -1,96 +1,100 @@
#ifndef __CG2103_H #ifndef __CG2103_H
#define __CG2103_H #define __CG2103_H
// Registri ed esercizi // Registri ed esercizi
#ifndef __CGLIB01_H #ifndef __CGLIB01_H
#include "cglib01.h" #include "cglib01.h"
#endif #endif
class TCausale : public TArray class TCausale : public TArray
{ {
TRectype _rec; TRectype _rec;
TRegistro _reg; TRegistro _reg;
TipoIVA _iva; TipoIVA _iva;
bool _corrisp; bool _corrisp;
char _sezione_clifo, _sezione_ritsoc, _sezione_ritfis, _sezione_revcharge, _provvisorio; char _sezione_clifo, _sezione_ritsoc, _sezione_ritfis, _sezione_revcharge, _provvisorio;
int _regolarizzazione;
protected:
const TRectype* row(int num) const { return (const TRectype*)objptr(num); } protected:
void calcIVA(); const TRectype* row(int num) const { return (const TRectype*)objptr(num); }
void calcIVA();
public: // TObject
virtual bool ok() const; public: // TObject
virtual bool ok() const;
public:
TBill& bill(int num, TBill& c) const; public:
TBill& bill(int num, TBill& c) const;
const char* codice() const;
const char* descrizione() const; const char* codice() const;
const char* cod_desc_agg(int num) const; const char* descrizione() const;
const char* desc_agg(int num) 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 data_doc() const;
bool apertura() const; bool num_doc() const;
bool chiusura() const; bool apertura() const;
bool sezionale() const; bool chiusura() const;
bool valuta() const; bool sezionale() const;
bool intra() const; bool valuta() const;
bool valintra() const; bool intra() const;
bool soloiva() const; bool valintra() const;
bool reverse_charge() const; bool soloiva() const;
char provvisorio() const { return _provvisorio; } bool reverse_charge() const;
const TString& causale_collegata() const; bool regolarizzazione();
const TString& causale_reg_iva() const; char provvisorio() const { return _provvisorio; }
const TString& tipo_doc() const; const TString& causale_collegata() const;
const TString& causale_reg_iva() const;
TRegistro& reg() const { return (TRegistro&)_reg; } const TString& tipo_doc() const;
TipoIVA iva() const { return _iva; }
int regime_speciale() const; TRegistro& reg() const { return (TRegistro&)_reg; }
bool corrispettivi() const { return _corrisp; } TipoIVA iva() const { return _iva; }
bool esclusione_allegati() const; int regime_speciale() const;
bool corrispettivi() const { return _corrisp; }
// bill deve essere il conto di ricavo bool esclusione_allegati() const;
bool IVA2bill(const TCodiceIVA& iva, TBill& bill) const;
// bill deve essere il conto di ricavo
tipo_movimento tipomov() const; bool IVA2bill(const TCodiceIVA& iva, TBill& bill) const;
const TString& tipodoc() const;
bool saldaconto(const TDate& datareg) const; tipo_movimento tipomov() const;
int link_m770() const; const TString& tipodoc() const;
char link_cespiti() const; bool saldaconto(const TDate& datareg) const;
bool link_analitica() const; int link_m770() const;
bool link_industriale() const; char link_cespiti() const;
bool link_analitica() const;
const TString& compatible(const TCausale& c) const; bool link_industriale() const;
char sezione(int riga) const; const TString& compatible(const TCausale& c) const;
char sezione_clifo() const;
char sezione_ritsoc() const; char sezione(int riga) const;
char sezione_ritfis() const; char sezione_clifo() const;
char sezione_revcharge() const ; char sezione_ritsoc() const;
char sezione_ritfis() const;
virtual bool read(const char* cod, int year); char sezione_revcharge() const ;
TCausale(const char* code = "", int year = 0); virtual bool read(const char* cod, int year);
virtual ~TCausale() {}
}; TCausale(const char* code = "", int year = 0);
virtual ~TCausale() {}
// Fatture };
#define RIGA_IVA_DETRAIBILE 3
#define RIGA_IVA_NON_DETRAIBILE 4 const TCausale & cached_causale(const char * codcaus, const int year);
#define RIGA_RITENUTE_FISCALI 8
#define RIGA_RITENUTE_SOCIALI 9 // Fatture
#define RIGA_IVA_DIFFERITA 10 #define RIGA_IVA_DETRAIBILE 3
#define RIGA_IVA_PER_CASSA 11 #define RIGA_IVA_NON_DETRAIBILE 4
#define RIGA_REVERSE_CHARGE 12 #define RIGA_RITENUTE_FISCALI 8
#define RIGA_RITENUTE_SOCIALI 9
// Pagamenti #define RIGA_IVA_DIFFERITA 10
#define RIGA_ABBUONI_PASSIVI 9 #define RIGA_IVA_PER_CASSA 11
#define RIGA_ABBUONI_ATTIVI 10 #define RIGA_REVERSE_CHARGE 12
#define RIGA_SPESE 11
#define RIGA_PAG_RITFIS 12 // Pagamenti
#define RIGA_DIFFCAM 13 #define RIGA_ABBUONI_PASSIVI 9
#define RIGA_PAG_RITSOC 14 #define RIGA_ABBUONI_ATTIVI 10
#define RIGA_SPESE 11
#define RIGA_PAG_RITFIS 12
#define RIGA_DIFFCAM 13
#define RIGA_PAG_RITSOC 14
#endif #endif