Patch level : 10.0

Files correlati     : mg1.exe
Ricompilazione Demo : [ ]
Commento            :
Corretta compattazione file a fine ricostruzione saldi


git-svn-id: svn://10.65.10.50/branches/R_10_00@22530 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2011-12-22 16:01:38 +00:00
parent 2a987e0e57
commit cd629055fc
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#include "mg1300.h" #include "mg4400.h"
PAGE "Controllo Documenti/Movimenti" -1 -1 40 3 PAGE "Controllo Documenti/Movimenti" -1 -1 40 3

View File

@ -632,9 +632,11 @@ bool TMov_mag::update_balances(bool lock)
keys_mag.sort(); keys_mag.sort();
TProgind* pi = NULL; TProgind* pi = NULL;
if (keys_mag.items() >= 32) if (keys_mag.items() >= 100)
{ {
TString msg; msg << TR("Aggiornamento saldi del movimento ") << get(MOVMAG_NUMREG); TString msg;
msg << TR("Aggiornamento saldi del movimento ") << get(MOVMAG_NUMREG)
<< ": " << get(MOVMAG_DESCR);
pi = new TProgind(keys_mag.items(), msg, false, true); pi = new TProgind(keys_mag.items(), msg, false, true);
} }
@ -1070,7 +1072,7 @@ bool rebuild_balances(int codes, const TTipo_valorizz tipo_valorizz,
TCursor mov_cur(&relmovmag, "", 2, &rec, &rec); TCursor mov_cur(&relmovmag, "", 2, &rec, &rec);
relmovmag.lfile().set_curr(new TMov_mag()); relmovmag.lfile().set_curr(new TMov_mag());
msg.format(FR("Ricostruzione saldi esercizio %04d : ricalcolo..."), codes); msg.format(FR("Ricostruzione saldi esercizio %04d ..."), codes);
mov_cur.scan(recalc_mov, (void*)&ok, msg); mov_cur.scan(recalc_mov, (void*)&ok, msg);
} }
@ -1078,6 +1080,7 @@ bool rebuild_balances(int codes, const TTipo_valorizz tipo_valorizz,
if (ok) if (ok)
{ {
prefix().close_closeable_isamfiles(); // Altrimenti segnala -69 durante la pack
TSystemisamfile mag(LF_MAG); TSystemisamfile mag(LF_MAG);
mag.pack(true, true); mag.pack(true, true);
} }