Patch level : 12.0 912
Files correlati : cg0200a.msk f17.dir f17.trr ve0.exe ve1.exe ve5.exe ve6.exe Commento : Corretta ricostruzione saldi per clifogiac sulle dotazioni quando l'esercizio è chiuso
This commit is contained in:
parent
08e8473259
commit
31015d542f
@ -255,12 +255,6 @@ void TMov_mag::set_body_key(TRectype & rowrec)
|
||||
rowrec.put(RMOVMAG_NUMREG,get(MOVMAG_NUMREG));
|
||||
}
|
||||
|
||||
/*void TMov_mag::load_rows_file(int logicnum)
|
||||
{
|
||||
CHECK(logicnum==LF_RMOVMAG,"L'unico file collegabile ai movimenti sono le righe");
|
||||
TMultiple_rectype::load_rows_file(logicnum);
|
||||
}*/
|
||||
|
||||
int TMov_mag::read(TBaseisamfile& f, word op, word lockop)
|
||||
{
|
||||
_saldi_mag.destroy();
|
||||
@ -921,27 +915,7 @@ void reset_clifogiac(TRectype& rec, const TRectype& oldrec, bool closed)
|
||||
rec.zero(CLIFOGIAC_VALORDC);
|
||||
}
|
||||
|
||||
const bool preserve_dot = ini_get_bool(CONFIG_DITTA, "lv", "Aggcong") ||
|
||||
ini_get_bool(CONFIG_DITTA, "mg", "GESMAG");
|
||||
|
||||
if (preserve_dot)
|
||||
{
|
||||
if (closed)
|
||||
{
|
||||
rec.add(CLIFOGIAC_DOTOD, oldrec.get_real(CLIFOGIAC_DOTOD));
|
||||
rec.add(CLIFOGIAC_DOTIN, oldrec.get_real(CLIFOGIAC_DOTIN));
|
||||
rec.add(CLIFOGIAC_DOTTM, oldrec.get_real(CLIFOGIAC_DOTTM));
|
||||
}
|
||||
else
|
||||
{
|
||||
rec.zero(CLIFOGIAC_DOTOD);
|
||||
rec.zero(CLIFOGIAC_DOTIN);
|
||||
rec.zero(CLIFOGIAC_DOTTM);
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
if (closed)
|
||||
{
|
||||
rec.put(CLIFOGIAC_DOTOD, oldrec.get(CLIFOGIAC_DOTOD));
|
||||
@ -954,7 +928,6 @@ void reset_clifogiac(TRectype& rec, const TRectype& oldrec, bool closed)
|
||||
rec.zero(CLIFOGIAC_DOTIN);
|
||||
rec.zero(CLIFOGIAC_DOTTM);
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user