Correzioni ad apertura/chiusura

git-svn-id: svn://10.65.10.50/trunk@1413 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
nik 1995-05-30 14:35:50 +00:00
parent 0d37f92b16
commit b96c4825fb

View File

@ -571,8 +571,6 @@ void CG4600_application::rmov_proper(int anno,long numrig,TDate& datareg,TRectyp
char sezione = ' '; char sezione = ' ';
real totale = tot_saldo; real totale = tot_saldo;
if (totale != ZERO)
{
rmov.zero(); rmov.zero();
rmov.put(RMV_ANNOES, anno); rmov.put(RMV_ANNOES, anno);
rmov.put(RMV_NUMREG, _numreg); rmov.put(RMV_NUMREG, _numreg);
@ -609,7 +607,6 @@ void CG4600_application::rmov_proper(int anno,long numrig,TDate& datareg,TRectyp
} }
rmov.put(RMV_IMPORTO, totale); rmov.put(RMV_IMPORTO, totale);
} }
}
void CG4600_application::costi() void CG4600_application::costi()
{ {
@ -663,6 +660,7 @@ void CG4600_application::costi()
if (j >= 1) if (j >= 1)
{ {
numrig++; numrig++;
if (tot_saldo != ZERO)
rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE); rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE);
tot_saldo = ZERO; tot_saldo = ZERO;
@ -692,6 +690,7 @@ void CG4600_application::costi()
// con una sezione opposta al risultato (della somma). // con una sezione opposta al risultato (della somma).
// numrig++; // numrig++;
if (tot_saldo != ZERO)
rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE); rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE);
_pn->write(); _pn->write();
_pn->destroy_rows(0); //Azzero l'oggetto pn. _pn->destroy_rows(0); //Azzero l'oggetto pn.
@ -811,6 +810,7 @@ void CG4600_application::ricavi()
if (j >= 1) if (j >= 1)
{ {
numrig++; numrig++;
if (tot_saldo != ZERO)
rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE); rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE);
tot_saldo = ZERO; tot_saldo = ZERO;
@ -840,6 +840,7 @@ void CG4600_application::ricavi()
// con una sezione opposta al risultato (della somma). // con una sezione opposta al risultato (della somma).
// numrig++; // numrig++;
if (tot_saldo != ZERO)
rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE); rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcproper,tot_saldo,FALSE);
_pn->write(); _pn->write();
_pn->destroy_rows(0); //Azzero l'oggetto pn. _pn->destroy_rows(0); //Azzero l'oggetto pn.
@ -1048,6 +1049,7 @@ void CG4600_application::chiudi_attivita()
if (j >= 1) if (j >= 1)
{ {
numrig++; numrig++;
if (tot_saldo != ZERO)
rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura
tot_saldo = ZERO; tot_saldo = ZERO;
@ -1079,6 +1081,7 @@ void CG4600_application::chiudi_attivita()
// con una sezione opposta al risultato (della somma). // con una sezione opposta al risultato (della somma).
// numrig++; // numrig++;
if (tot_saldo != ZERO)
rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura
_pn->write(); _pn->write();
_pn->destroy_rows(0); //Azzero l'oggetto pn. _pn->destroy_rows(0); //Azzero l'oggetto pn.
@ -1198,6 +1201,7 @@ void CG4600_application::chiudi_passivita()
if (j >= 1) if (j >= 1)
{ {
numrig++; numrig++;
if (tot_saldo != ZERO)
rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura rmov_proper(_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura
tot_saldo = ZERO; tot_saldo = ZERO;
@ -1227,6 +1231,7 @@ void CG4600_application::chiudi_passivita()
// con una sezione opposta al risultato (della somma). // con una sezione opposta al risultato (della somma).
// numrig++; // numrig++;
if (tot_saldo != ZERO)
rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura rmov_proper (_annoesch,numrig,_dataregch,_pn->cg(j),_tcbilch,tot_saldo,FALSE); //Chiusura
_pn->write(); _pn->write();
_pn->destroy_rows(0); //Azzero l'oggetto pn. _pn->destroy_rows(0); //Azzero l'oggetto pn.
@ -1397,6 +1402,7 @@ void CG4600_application::apri_attivita()
if (j >= 1) if (j >= 1)
{ {
numrig++; numrig++;
if (tot_saldo != ZERO)
rmov_proper(_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Apertura rmov_proper(_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Apertura
tot_saldo = ZERO; tot_saldo = ZERO;
@ -1424,6 +1430,7 @@ void CG4600_application::apri_attivita()
// di tutti i saldi aventi lo stesso sottoconto, indicandola // di tutti i saldi aventi lo stesso sottoconto, indicandola
// con una sezione opposta al risultato (della somma). // con una sezione opposta al risultato (della somma).
if (tot_saldo != ZERO)
rmov_proper (_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Chiusura rmov_proper (_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Chiusura
_pn->write(); _pn->write();
_pn->destroy_rows(0); //Azzero l'oggetto pn. _pn->destroy_rows(0); //Azzero l'oggetto pn.
@ -1539,6 +1546,7 @@ void CG4600_application::apri_passivita()
if (j >= 1) if (j >= 1)
{ {
numrig++; numrig++;
if (tot_saldo != ZERO)
rmov_proper(_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Apertura rmov_proper(_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Apertura
tot_saldo = ZERO; tot_saldo = ZERO;
@ -1566,6 +1574,7 @@ void CG4600_application::apri_passivita()
// di tutti i saldi aventi lo stesso sottoconto, indicandola // di tutti i saldi aventi lo stesso sottoconto, indicandola
// con una sezione opposta al risultato (della somma). // con una sezione opposta al risultato (della somma).
if (tot_saldo != ZERO)
rmov_proper (_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Apertura rmov_proper (_annoesap,numrig,_dataregap,_pn->cg(j),_tcbilap,tot_saldo,TRUE); //Apertura
_pn->write(); _pn->write();
_pn->destroy_rows(0); //Azzero l'oggetto pn. _pn->destroy_rows(0); //Azzero l'oggetto pn.