Patch level : 10.0 920
Files correlati : 772mod.exe Ricompilazione Demo : [ ] Commento : Corretto filtro per data della stampa schede percipienti Il filtro doveva essere sulla competenza git-svn-id: svn://10.65.10.50/branches/R_10_00@21646 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
46fd6aaf41
commit
e6b0b004dc
@ -478,21 +478,28 @@ bool TStampa_mov::init_print()
|
||||
reset_files(); //resetta l'albero di stampa
|
||||
add_file(LF_SCPERC);
|
||||
|
||||
TRectype da(LF_SCPERC), a(LF_SCPERC);
|
||||
TRectype da(LF_SCPERC), a(LF_SCPERC);
|
||||
TString filter;
|
||||
|
||||
|
||||
da.put(SPR_CODDITTA, _codditta);
|
||||
da.put(SPR_TIPOA, _tipoa_da);
|
||||
da.put(SPR_CODANAGR, _cod_da);
|
||||
if (_datada > botime)
|
||||
da.put(SPR_DATADOC, _datada);
|
||||
filter << "(" << SPR_ANNOC << ">=" << _datada.year() << ")&&(" << SPR_MESEC << ">=" << _datada.month() <<")";
|
||||
|
||||
a.put(SPR_CODDITTA, _codditta);
|
||||
a.put(SPR_TIPOA, _tipoa_a);
|
||||
a.put(SPR_CODANAGR, _cod_a);
|
||||
if (_dataa < eotime)
|
||||
a.put(SPR_DATADOC, _dataa);
|
||||
{
|
||||
if (filter.full())
|
||||
filter << "&&";
|
||||
filter << "(" << SPR_ANNOC << "<=" << _dataa.year() << ")&&(" << SPR_MESEC << "<=" << _dataa.month() <<")";
|
||||
}
|
||||
|
||||
current_cursor()->setregion(da, a);
|
||||
current_cursor()->setfilter(filter);
|
||||
|
||||
// viene ordinato per numero pagamento e numero versamento
|
||||
dati_erogante();
|
||||
|
Loading…
x
Reference in New Issue
Block a user