Files correlati : cg4.exe Le righe IVA di tipo non soggetto e con competenza precedente non venivano incluse in liquidazione
84 lines
2.6 KiB
C++
84 lines
2.6 KiB
C++
#include <variant.h>
|
|
|
|
#include "cglib01.h"
|
|
#include "mov.h"
|
|
#include "rmoviva.h"
|
|
#include "../ba/ba8500.h"
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TRiepilogoIVA_recordset
|
|
///////////////////////////////////////////////////////////
|
|
|
|
#define COD "COD"
|
|
#define DESC "DESC"
|
|
#define IMPACQ "IMPACQ"
|
|
#define IVAACQ "IVAACQ"
|
|
#define IMPCORR "IMPCORR"
|
|
#define IVACORR "IVACORR"
|
|
#define IMPVEN "IMPVEN"
|
|
#define IVAVEN "IVAVEN"
|
|
|
|
class TRiepilogoIVA_recordset : public TRecordset
|
|
{
|
|
TArray _rows;
|
|
long _pos;
|
|
TDate _from_date;
|
|
TDate _to_date;
|
|
long _from_gruppo;
|
|
long _from_conto;
|
|
long _from_sottoconto;
|
|
long _to_gruppo;
|
|
long _to_conto;
|
|
long _to_sottoconto;
|
|
TArray _info;
|
|
bool _freezed;
|
|
|
|
protected:
|
|
virtual const TVariant& get_field(int num, const char* field) const;
|
|
void TRiepilogoIVA_recordset::add_field(TFieldtypes tipo, short id, int width, const char* name);
|
|
|
|
public:
|
|
virtual TRecnotype items() const { return _rows.items(); }
|
|
virtual bool move_to(TRecnotype pos);
|
|
virtual TRecnotype current_row() const { return _pos; }
|
|
virtual void requery();
|
|
virtual const TString& query_text() const;
|
|
virtual unsigned int columns() const { return _info.items(); }
|
|
virtual const TRecordset_column_info& column_info(unsigned int column) const { return (const TRecordset_column_info&)_info[column]; }
|
|
void freeze(bool on = true) { _freezed = on; }
|
|
void unfreeze() { freeze(false); }
|
|
// const TString& col2name(unsigned int column) const;
|
|
virtual const TVariant& get(unsigned int column) const;
|
|
|
|
|
|
TDate set_from(const TDate& from) { return _from_date = from; }
|
|
TDate set_to(const TDate& to) { return _to_date = to; }
|
|
void set_from_conto(int gruppo, int conto, long sottoconto) { _from_gruppo = gruppo; _from_conto = conto; _from_sottoconto = sottoconto; }
|
|
void set_to_conto(int gruppo, int conto, long sottoconto) { _to_gruppo = gruppo; _to_conto = conto; _to_sottoconto = sottoconto; }
|
|
|
|
virtual bool set_senzacompetenzaIVA(bool on) { return true; }
|
|
virtual bool set_competenzadiversaIVA(bool on) { return false; }
|
|
virtual bool set_registrazioneIVAritardo(bool on) { return false; }
|
|
virtual bool senzacompetenzaIVA() { return true; }
|
|
virtual bool competenzadiversaIVA() { return false; }
|
|
virtual bool registrazioneIVAritardo() { return false; }
|
|
|
|
TRiepilogoIVA_recordset();
|
|
virtual ~TRiepilogoIVA_recordset() { }
|
|
};
|
|
|
|
///////////////////////////////////////////////////////////
|
|
// TRiepilogoIVA_report
|
|
///////////////////////////////////////////////////////////
|
|
|
|
class TRiepilogoIVA_report : public TReport
|
|
{
|
|
|
|
protected:
|
|
virtual bool use_mask() { return false; }
|
|
|
|
public:
|
|
virtual bool set_recordset(TRecordset * set) { return TReport::set_recordset(set); }
|
|
|
|
};
|