Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
0001446: 001638 - stampa cambi giornalieri
Descrizione  la stampa dei cambi giornalieri non produce risultati se la selezione è fatta per cambio, stampa invece correttamente selezionando per data.


git-svn-id: svn://10.65.10.50/trunk@19529 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-10-28 10:03:39 +00:00
parent 3c841795e1
commit c4b56e378a

View File

@ -52,6 +52,7 @@ void TTable_recordset::set_custom_filter(TCursor& cursor) const
TRectype from(cursor.curr()); from.zero();
TRectype to(from);
bool key1_full = false;
TString80 val;
for (int i = _mask->fields() - 1; i >= 0; i--)
{
const TMask_field& f = _mask->fld(i);
@ -59,7 +60,10 @@ void TTable_recordset::set_custom_filter(TCursor& cursor) const
if (ref != NULL && ref->name() == "CODTAB" && !f.empty())
{
const bool is_final = f.in_group(2);
ref->write(f.get(), is_final ? to : from);
val = f.get();
if (f.is_kind_of(CLASS_DATE_FIELD))
val = TDate(val).string(full, '\0', full, full, amg_date);
ref->write(val, is_final ? to : from);
key1_full = true;
}
}