Corretto ciclo di lettura bilancio di verifica

git-svn-id: svn://10.65.10.50/trunk@3954 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-12-03 09:21:30 +00:00
parent 5678846ebd
commit 42d50eeaeb

View File

@ -2843,6 +2843,8 @@ void CG1500_application::postclose_print()
void CG1500_application::set_page(int file, int counter)
{
const TString16 dep;
if (_bilancio == 1) //stampa bilancio a sezioni contrapposte
{
_i = 1;
@ -2851,7 +2853,7 @@ void CG1500_application::set_page(int file, int counter)
{
set_row(_i++,"@29gATTIVITA'@94gPASSIVITA'");
set_row(_i++,"@29g---------@94g----------");
set_row(_i++, "");
set_row(_i++, dep);
}
controlla_conto(_eof1,_eof2); //stampo una riga vuota tra un gruppo e un conto altrimenti no
@ -2862,7 +2864,7 @@ void CG1500_application::set_page(int file, int counter)
printer().formfeed();
set_row(_i++,"@29gCOSTI@94gRICAVI");
set_row(_i++,"@29g-----@94g------");
set_row(_i++, "");
set_row(_i++, dep);
_salto_pagina = TRUE;
}
@ -2879,7 +2881,7 @@ void CG1500_application::set_page(int file, int counter)
printer().formfeed();
set_row(_i++,"@59gCONTI D'ORDINE");
set_row(_i++,"@59g--------------");
set_row(_i++, "");
set_row(_i++, dep);
if (_eof5 && _eof6)
{
_stampato = TRUE;
@ -3173,7 +3175,7 @@ int CG1500_application::stampa_record_conto(int g,int c,const TString& d,
void CG1500_application::stampa_riga_totali(int r)
{
TString dep = "";
const TString16 dep;
char app = ' ';
if (_saldo_finale_tot > 0)
@ -3362,7 +3364,7 @@ void CG1500_application::stampa_riga_totali(int r)
void CG1500_application::stampa_totali()
{
TString dep = "";
const TString16 dep = "";
real pareggio;
real sbilancio = _tot_dare - _tot_avere;
if (sbilancio > ZERO) //_tot_dare > _tot_avere
@ -3421,7 +3423,7 @@ void CG1500_application::stampa_totali()
//per i conti patrimoniali stampo anche lo sbilancio es. precedente
void CG1500_application::stampa_totali_uno(const real& r1,const real& r2)
{
TString dep = "";
const TString16 dep;
real pareggio;
real sbilancio = _tot_dare - r1 - (_tot_avere - r2);
real sbilprec = r2 - r1;