Patch level : 12.0 904
Files correlati : cg4.exe Commento : Corretto aggiornamento saldi. riaggiungeva in dare i saldi iniziali
This commit is contained in:
parent
14afa6c813
commit
f8ca613161
@ -100,8 +100,8 @@ real TSaldo::saldofin_esprec(int annoes, int g, int c, long s, bool saldo_chiusu
|
||||
_significativo = false;
|
||||
|
||||
const int annoesprec = EsePre(annoes);
|
||||
if (!ricerca_progr_prec(annoesprec, g, c, s)) // non ci sono esercizi prima del primo
|
||||
return ZERO;
|
||||
if (!ricerca_progr_prec(annoesprec, g, c, s)) // non ci sono esercizi prima del primo
|
||||
return ZERO;
|
||||
|
||||
const char flag = _saldi.get(SLD_FLAGSALINI)[0];
|
||||
const real saldo = _saldi.get_real(SLD_SALDO);
|
||||
@ -140,7 +140,7 @@ real TSaldo::saldofin_esprec(int annoes, int g, int c, long s, bool saldo_chiusu
|
||||
}
|
||||
|
||||
_significativo = !tot.is_zero();
|
||||
return tot;
|
||||
return tot;
|
||||
}
|
||||
|
||||
//richiamata nel bilancio a sez.contr per data limite
|
||||
@ -304,7 +304,7 @@ bool TSaldo::ultima_immissione_verifica(int annoes,int g,int c,long s,int indbil
|
||||
_saldi.put(SLD_SOTTOCONTO,s);
|
||||
_saldi.put(SLD_FLSCA, "");
|
||||
|
||||
if (_saldi.read() == NOERR)
|
||||
if (_saldi.read() == NOERR)
|
||||
{
|
||||
// int annoe = _saldi.get_int(SLD_ANNOES);
|
||||
// int gruppo = _saldi.get_int(SLD_GRUPPO);
|
||||
@ -401,7 +401,7 @@ bool TSaldo::ultima_immissione_bilancio(int annoes,int g,int c,long s,int indbil
|
||||
_saldi.put(SLD_SOTTOCONTO,s);
|
||||
_saldi.put(SLD_FLSCA, "");
|
||||
|
||||
if (_saldi.read() == NOERR)
|
||||
if (_saldi.read() == NOERR)
|
||||
{
|
||||
// annoe = _saldi.get_int(SLD_ANNOES);
|
||||
// gruppo = _saldi.get_int(SLD_GRUPPO);
|
||||
@ -858,7 +858,9 @@ void TTab_conti::aggiorna_conto(const TBill& tcon,
|
||||
if (!movimentato)
|
||||
if (tc->dare().is_zero() && tc->avere().is_zero() &&
|
||||
tc->saldofin().is_zero() && tc->darepro().is_zero() &&
|
||||
tc->averepro().is_zero() && tc->saldo().is_zero())
|
||||
tc->dareprob().is_zero() && tc->dareproc().is_zero() &&
|
||||
tc->averepro().is_zero() && tc->avereprob().is_zero() &&
|
||||
tc->avereproc().is_zero() && tc->saldo().is_zero())
|
||||
remove(*tc, anno_es, scaricato);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user