Patch level : 12.0 336
Files correlati : patch 336 git-svn-id: svn://10.65.10.50/branches/R_10_00@23569 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
2ce78f75c6
commit
7a178220cb
@ -910,8 +910,9 @@ void TPrimanota_application::init_insert_mode(TMask& m)
|
|||||||
TRegistro& reg = causale().reg();
|
TRegistro& reg = causale().reg();
|
||||||
const TString4 codreg = reg.name();
|
const TString4 codreg = reg.name();
|
||||||
const int regyear = reg.year();
|
const int regyear = reg.year();
|
||||||
TRegistro r(codreg, regyear);
|
|
||||||
const long protiva = r.protocol() + 1;
|
reg.force_read(codreg, regyear);
|
||||||
|
const long protiva = reg.protocol() + 1;
|
||||||
|
|
||||||
m.set(F_PROTIVA, protiva, true); // Aggiorna protocollo IVA
|
m.set(F_PROTIVA, protiva, true); // Aggiorna protocollo IVA
|
||||||
}
|
}
|
||||||
|
@ -417,6 +417,14 @@ bool TRegistro::read(const char* cod, int year)
|
|||||||
return !_rec.empty();
|
return !_rec.empty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool TRegistro::force_read(const char* cod, int year)
|
||||||
|
{
|
||||||
|
TString8 chiave; chiave.format("%04d%s", year, cod);
|
||||||
|
|
||||||
|
cache().discard("REG", chiave);
|
||||||
|
return read(cod, year);
|
||||||
|
}
|
||||||
|
|
||||||
bool TRegistro::reread()
|
bool TRegistro::reread()
|
||||||
{
|
{
|
||||||
if (ok())
|
if (ok())
|
||||||
|
@ -93,6 +93,7 @@ protected:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
bool read(const char* code, int year);
|
bool read(const char* code, int year);
|
||||||
|
bool force_read(const char* code, int year);
|
||||||
bool reread();
|
bool reread();
|
||||||
TRegistro& operator =(const TRegistro& r);
|
TRegistro& operator =(const TRegistro& r);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user