Patch level : 12.0 428

Files correlati     :

Corretta l'impostazione del flag split payment nella contabilizzazione fatture.
Gestita la concorrenza nell'attribuzione del protocollo IVA sempre in contabilizzazione

git-svn-id: svn://10.65.10.50/branches/R_10_00@24027 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
bonazzi 2017-08-04 17:52:46 +00:00
parent 53df66542c
commit 67760d8d60
2 changed files with 12 additions and 1 deletions

View File

@ -400,6 +400,15 @@ TRegistro::TRegistro(const char* cod, int year)
: _rec(LF_TAB), _att(LF_ATTIV)
{ read(cod, year); }
TRegistro::TRegistro(const TRegistro & reg)
: _rec(LF_TAB), _att(LF_ATTIV)
{
const int year = atoi(reg._rec.get("CODTAB").sleft(4));
const TString8 cod = reg._rec.get("CODTAB").smid(4);
read(cod, year);
}
bool TRegistro::read(const char* cod, int year)
{
if (year <= 0)

View File

@ -111,6 +111,7 @@ public:
long protocol() const { return _rec.get_long("I5"); }
const TString& attivita() const { return _rec.get("S8"); }
bool agenzia_viaggi() const;
const TString& tipo_attivita() const;
bool attivita_mista() const { const char a = tipo_attivita()[0]; return a == 'E'; }
@ -122,7 +123,8 @@ public:
#endif
bool update(long uprotiva, const TDate& lastreg);
TRegistro(const char* code = "", int year = 0);
TRegistro(const char* code = "", int year = 0);
TRegistro(const TRegistro & reg);
virtual ~TRegistro() {}
};