Patch level : 4.0 874

Files correlati     :  cg3.exe
Ricompilazione Demo : [ ]
Commento     :

Il saldo attuale dei mastrini non si aggiorna dopo linserimento di un movimento in prima nota dai mastrini


git-svn-id: svn://10.65.10.50/trunk@16162 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2008-02-13 13:31:25 +00:00
parent a800e42583
commit 8de192b484
3 changed files with 13 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include <currency.h>
#include <prefix.h>
#include <progind.h>
#include <recarray.h>
#include <scanner.h>
#include <tabutil.h>
#include <utility.h>
@ -736,7 +737,10 @@ int TFile_manager::close_closeable()
if (i.is_open())
{
if (!i.is_exclusive())
{
cache().discard(i.num());
i.auto_close();
}
else
_open_files++;
}
@ -956,7 +960,7 @@ void TPrefix::set(
{
CGetPref();
xvt_fsys_parse_pathname(cprefix, NULL, NULL, _prefix.get_buffer(), NULL, NULL);
}
}
else
{
_prefix = name;

View File

@ -901,3 +901,10 @@ const TString_array& user_and_groups()
}
return _uag;
}
void TDB_cache::discard(int file)
{
rec_cache(file).flush();
rec_cache(file).destroy();
}

View File

@ -249,6 +249,7 @@ public:
bool discard(const char *table, const char* key);
bool discard(const TRectype& rec);
void flush(int file) { rec_cache(file).flush(); }
void discard(int file);
const TRectype& get(int file, const char* key)
{ return rec_cache(file).get(key); }