Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Ottimizzazioni per ricalcolo saldi di magazzino


git-svn-id: svn://10.65.10.50/branches/R_10_00@22457 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-10-18 13:17:15 +00:00
parent 50b54d23ea
commit e3d6bc759a
3 changed files with 5 additions and 3 deletions

View File

@ -16,17 +16,19 @@ DEFFLD(OCFPI)
DEFFLD(NUMREG) // Can be null DEFFLD(NUMREG) // Can be null
// Flags // Flags
DEFFLD(FORZATURA)
DEFFLD(IGNORA) DEFFLD(IGNORA)
// Content fields // Content fields
DEFFLD(DATAREG) DEFFLD(DATAREG)
DEFFLD(NUMFATT)
DEFFLD(MODPAG) DEFFLD(MODPAG)
DEFFLD(IMPORTO) DEFFLD(IMPORTO)
DEFFLD(IMPOSTA) DEFFLD(IMPOSTA)
DEFFLD(TIPOPE) DEFFLD(TIPOPE)
DEFFLD(CONTRATTO) DEFFLD(CONTRATTO)
DEFFLD(DATARETT)
DEFFLD(NUMRETT) DEFFLD(NUMRETT)
#undef DEFFLD #undef DEFFLD

View File

@ -428,7 +428,7 @@ int TFile_info::close()
if (_ref_count > 0) if (_ref_count > 0)
{ {
_ref_count--; _ref_count--;
if (_ref_count == 0 || _exclusive) if (_ref_count == 0 || (_exclusive && _ref_count < 2))
{ {
if (is_open()) if (is_open())
{ {

View File

@ -1833,7 +1833,7 @@ bool TCursor::scan(CURSOR_SCAN_FUNC func, void* pJolly, const char* msg)
if (tot > 1) if (tot > 1)
{ {
if (msg == NULL || *msg == '\0') if (msg == NULL || *msg == '\0')
msg = TR("Elaborazione in corso..."); msg = TR("Elaborazione in corso...");
pi = new TProgind(tot, msg, true, true); pi = new TProgind(tot, msg, true, true);
} }