diff --git a/cg/cg1500.cpp b/cg/cg1500.cpp index 6a8441e37..725f0d5dd 100755 --- a/cg/cg1500.cpp +++ b/cg/cg1500.cpp @@ -3350,6 +3350,7 @@ void TStampa_bilanci::stampa_totali() _prima_volta = FALSE; else _seconda_volta = FALSE; + const bool stato_patrimoniale = _seconda_volta; // cosa mi tocca fare _gc_prec_dare = _gc_corr_avere = ""; _cambiato_conto_1 = TRUE; _cambiato_conto_2 = TRUE; @@ -3366,12 +3367,18 @@ void TStampa_bilanci::stampa_totali() TString pa; total2string(pareggio, pa); if (_tot_dare > _tot_avere) { - set_row(_i++, FR("@80gSBILANCIO ESERCIZIO IN CORSO@113g%s"), (const char*)sb); + if (stato_patrimoniale) + set_row(_i++, FR("@79gUTILE DELL'ESERCIZIO IN CORSO@113g%s"), (const char*)sb); + else + set_row(_i++, FR("@77gPERDITA DELL'ESERCIZIO IN CORSO@113g%s"), (const char*)sb); set_row(_i++, FR("@91gTOTALE A PAREGGIO@113g%s"),(const char*)pa); } if (_tot_dare < _tot_avere) { - set_row(_i++, FR("@17gSBILANCIO ESERCIZIO IN CORSO@48g%s"), (const char*)sb); + if (stato_patrimoniale) + set_row(_i++, FR("@14gPERDITA DELL'ESERCIZIO IN CORSO@48g%s"), (const char*)sb); + else + set_row(_i++, FR("@16gUTILE DELL'ESERCIZIO IN CORSO@48g%s"), (const char*)sb); set_row(_i++, FR("@28gTOTALE A PAREGGIO@48g%s"),(const char*)pa); } _tot_dare = ZERO; @@ -3389,6 +3396,7 @@ void TStampa_bilanci::stampa_totali_uno(const real& r1,const real& r2) _prima_volta = FALSE; else _seconda_volta = FALSE; + const bool stato_patrimoniale = _seconda_volta; // cosa mi tocca fare _gc_prec_dare = _gc_corr_avere = ""; _cambiato_conto_1 = TRUE; _cambiato_conto_2 = TRUE; @@ -3414,8 +3422,10 @@ void TStampa_bilanci::stampa_totali_uno(const real& r1,const real& r2) } TString pal; total2string(sbilancio, pal); TString bal; total2string(pareggio, bal); - set_row(_i++, FR("@80gSBILANCIO ESERCIZIO IN CORSO@113g%s"), - (const char*)pal); + if (stato_patrimoniale) + set_row(_i++, FR("@79gUTILE DELL'ESERCIZIO IN CORSO@113g%s"), (const char*)pal); + else + set_row(_i++, FR("@77gPERDITA DELL'ESERCIZIO IN CORSO@113g%s"), (const char*)pal); set_row(_i++, FR("@91gTOTALE A PAREGGIO@113g%s"),(const char*)bal); } else if (sbilancio < ZERO) //ho una perdita => va stampato tra le attivita' @@ -3431,8 +3441,10 @@ void TStampa_bilanci::stampa_totali_uno(const real& r1,const real& r2) TString pal; total2string(sbilancio, pal); TString bal; total2string(pareggio, bal); - set_row(_i++, FR("@17gSBILANCIO ESERCIZIO IN CORSO@48g%s"), - (const char*)pal); + if (stato_patrimoniale) + set_row(_i++, FR("@14gPERDITA DELL'ESERCIZIO IN CORSO@48g%s"), (const char*)pal); + else + set_row(_i++, FR("@16gUTILE DELL'ESERCIZIO IN CORSO@48g%s"), (const char*)pal); set_row(_i++, FR("@28gTOTALE A PAREGGIO@48g%s"),(const char*)bal); } else //sbilancio es. in corso == 0