Patch level : 10,0 nopatch

Files correlati     : ri0.exe
Ricompilazione Demo : [ ]
Commento            :


Riclassificazioni


git-svn-id: svn://10.65.10.50/branches/R_10_00@20790 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
alex 2010-08-23 07:50:06 +00:00
parent 9ec94fad55
commit 623b930fbf

View File

@ -460,6 +460,7 @@ void TSaldi_conti_recordset::set_custom_columns()
TRecordset_column_info c;
c._type = _realfld;
c._width = 18;
for (int i = 0; i < nper(); i++)
{
if (_sel_columns > 0)
@ -485,7 +486,7 @@ HIDDEN bool non_zero(const TRelation * r)
const long sottoconto = pcon.get_long(PCN_SOTTOCONTO);
const TSaldo_periodo & s = saldo_periodo_conto(tcf, gruppo, conto, sottoconto);
return !s.movimentato() | !s.is_zero();
return s.movimentato() || !s.is_zero();
}
TCursor* TSaldi_conti_recordset::cursor() const
@ -592,7 +593,7 @@ TSaldi_conti_recordset::TSaldi_conti_recordset(const char * codper, int nper, co
TString query("USE ");
query << LF_PCON;
query << "\nDISPLAY GRUPPO\nDISPLAY CONTO\nDISPLAY SOTTOCONTO\nDISPLAY DESCR\nDISPLAY INDBIL\n";
query << "\nDISPLAY \"Gruppo\" GRUPPO\nDISPLAY \"Conto\" CONTO\nDISPLAY \"Sottoconto\" SOTTOCONTO\nDISPLAY \"Descrizione\" DESCR\nDISPLAY \"Indicatore Bil.\" INDBIL\n";
set(query);
}
else
@ -655,7 +656,7 @@ TSaldi_conti_recordset::TSaldi_conti_recordset(const TMask& m, const TString& sq
TString query("USE ");
query << LF_PCON;
query << "\nDISPLAY GRUPPO\nDISPLAY CONTO\nDISPLAY SOTTOCONTO\nDISPLAY DESCR\nDISPLAY INDBIL\n";
query << "\nDISPLAY \"Gruppo\" GRUPPO\nDISPLAY \"Conto\" CONTO\nDISPLAY \"Sottoconto\" SOTTOCONTO\nDISPLAY \"Descrizione\" DESCR\nDISPLAY \"Indicatore Bil.\" INDBIL\n";
set(query);
}
else
@ -683,9 +684,11 @@ void TSaldi_ricl_recordset::set_custom_columns()
c._type = _longfld;
c._name = "INDBIL";
c._width = 1;
add_column_info(c);
c._type = _realfld;
c._width = 18;
for (int i = 0; i < nper(); i++)
{
if (sel_columns() > 0)
@ -741,7 +744,7 @@ HIDDEN bool non_zero_ricl(const TRelation * r)
const TString16 cod = tab.get("CODTAB");
const TSaldo_periodo & s = saldo_periodo_ricl(codricl, cod);
return !s.movimentato() || !s.is_zero();
return s.movimentato() || !s.is_zero();
}
TCursor* TSaldi_ricl_recordset::cursor() const
@ -837,7 +840,7 @@ TSaldi_ricl_recordset::TSaldi_ricl_recordset(const char * codricl, const char *
{
TString query;
query << "USE " << table << "\nDISPLAY CODTAB\nDISPLAY S0\n";
query << "USE " << table << "\nDISPLAY \"Codice\" CODTAB\nDISPLAY \"Descrizione\" S0\n";
set(query);
}
else
@ -918,7 +921,7 @@ TSaldi_ricl_recordset::TSaldi_ricl_recordset(const TMask& m, const TString& sql)
{
TString query;
query << "USE " << table << "\nDISPLAY CODTAB\nDISPLAY S0\n";
query << "USE " << table << "\nDISPLAY \"Codice\" CODTAB\nDISPLAY \"Descrizione\" S0\n";
set(query);
}
else