Patch level : 2.1 108
Files correlati : cg1.exe Ricompilazione Demo : [ ] Commento : Sarebbe meglio stampare Utile o Perdita dell'esercizio al posto di sbilancio dell'esercizio in corso git-svn-id: svn://10.65.10.50/trunk@12290 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
6b7ba8234b
commit
0b5850d4bc
@ -3350,6 +3350,7 @@ void TStampa_bilanci::stampa_totali()
|
|||||||
_prima_volta = FALSE;
|
_prima_volta = FALSE;
|
||||||
else
|
else
|
||||||
_seconda_volta = FALSE;
|
_seconda_volta = FALSE;
|
||||||
|
const bool stato_patrimoniale = _seconda_volta; // cosa mi tocca fare
|
||||||
_gc_prec_dare = _gc_corr_avere = "";
|
_gc_prec_dare = _gc_corr_avere = "";
|
||||||
_cambiato_conto_1 = TRUE;
|
_cambiato_conto_1 = TRUE;
|
||||||
_cambiato_conto_2 = TRUE;
|
_cambiato_conto_2 = TRUE;
|
||||||
@ -3366,12 +3367,18 @@ void TStampa_bilanci::stampa_totali()
|
|||||||
TString pa; total2string(pareggio, pa);
|
TString pa; total2string(pareggio, pa);
|
||||||
if (_tot_dare > _tot_avere)
|
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);
|
set_row(_i++, FR("@91gTOTALE A PAREGGIO@113g%s"),(const char*)pa);
|
||||||
}
|
}
|
||||||
if (_tot_dare < _tot_avere)
|
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);
|
set_row(_i++, FR("@28gTOTALE A PAREGGIO@48g%s"),(const char*)pa);
|
||||||
}
|
}
|
||||||
_tot_dare = ZERO;
|
_tot_dare = ZERO;
|
||||||
@ -3389,6 +3396,7 @@ void TStampa_bilanci::stampa_totali_uno(const real& r1,const real& r2)
|
|||||||
_prima_volta = FALSE;
|
_prima_volta = FALSE;
|
||||||
else
|
else
|
||||||
_seconda_volta = FALSE;
|
_seconda_volta = FALSE;
|
||||||
|
const bool stato_patrimoniale = _seconda_volta; // cosa mi tocca fare
|
||||||
_gc_prec_dare = _gc_corr_avere = "";
|
_gc_prec_dare = _gc_corr_avere = "";
|
||||||
_cambiato_conto_1 = TRUE;
|
_cambiato_conto_1 = TRUE;
|
||||||
_cambiato_conto_2 = 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 pal; total2string(sbilancio, pal);
|
||||||
TString bal; total2string(pareggio, bal);
|
TString bal; total2string(pareggio, bal);
|
||||||
set_row(_i++, FR("@80gSBILANCIO ESERCIZIO IN CORSO@113g%s"),
|
if (stato_patrimoniale)
|
||||||
(const char*)pal);
|
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);
|
set_row(_i++, FR("@91gTOTALE A PAREGGIO@113g%s"),(const char*)bal);
|
||||||
}
|
}
|
||||||
else if (sbilancio < ZERO) //ho una perdita => va stampato tra le attivita'
|
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 pal; total2string(sbilancio, pal);
|
||||||
TString bal; total2string(pareggio, bal);
|
TString bal; total2string(pareggio, bal);
|
||||||
set_row(_i++, FR("@17gSBILANCIO ESERCIZIO IN CORSO@48g%s"),
|
if (stato_patrimoniale)
|
||||||
(const char*)pal);
|
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);
|
set_row(_i++, FR("@28gTOTALE A PAREGGIO@48g%s"),(const char*)bal);
|
||||||
}
|
}
|
||||||
else //sbilancio es. in corso == 0
|
else //sbilancio es. in corso == 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user