diff --git a/src/cg/cg1500.cpp b/src/cg/cg1500.cpp index 3cdace05a..5b0777a46 100755 --- a/src/cg/cg1500.cpp +++ b/src/cg/cg1500.cpp @@ -1497,11 +1497,11 @@ bool TStampa_bilanci::calcola(int g, int c, long s) //calcolo i movimenti del periodo if (check_mov(_stampa_mov_prov, provvis)) { - conto_mov = true; if (data.ok() && esercizi().esercizio(data).codice() == _annoes) _u_max = fnc_max(_u_max, data); if ((data >= _dataini) && (data < _dal)) //calcolo i progressivi precedenti { + conto_mov = true; _mov_ap |= caus.apertura(); if (sezione == 'D') _prg_prec_dare += importo; @@ -1511,6 +1511,7 @@ bool TStampa_bilanci::calcola(int g, int c, long s) else if (data >= _dal && data <= _al && !caus.apertura()) { + conto_mov = true; if (sezione == 'D') _mov_periodo_dare += importo; else @@ -1960,6 +1961,7 @@ void TStampa_bilanci::leggi_clifo(const TArray& gccf) } int aprec = ese.pred(anno); + saldi.zero(); saldi.put(SLD_ANNOES, anno); // W96SALDI del 05-06-96 saldi.put(SLD_FLSCA, false);