Patch level :avis7 006
Files correlati :at0.exe Ricompilazione Demo : [ ] Commento :sistemato problema stampa di chiusura (problema avisBO con controlli sanitari) git-svn-id: svn://10.65.10.50/trunk@10032 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
a36a5c61a3
commit
81fdc5499d
@ -406,10 +406,14 @@ bool TChiusuraPeriodica::filter_func_chiusura(const TRelation* rel)
|
|||||||
TRectype* key = new TRectype(LF_CONTSAN);
|
TRectype* key = new TRectype(LF_CONTSAN);
|
||||||
long codice = recsog.get_long(SOG_CODICE);
|
long codice = recsog.get_long(SOG_CODICE);
|
||||||
key->put(CON_CODICE, codice);
|
key->put(CON_CODICE, codice);
|
||||||
int err = app()._scontrolli->read(key);
|
TRecord_array& contsan = *app()._scontrolli;
|
||||||
|
int err = contsan.read(key);
|
||||||
if (err == NOERR)
|
if (err == NOERR)
|
||||||
{
|
{
|
||||||
const TRectype& riga = app()._scontrolli->row(app()._scontrolli->rows());
|
int ultimariga = contsan.last_row();
|
||||||
|
if (ultimariga > 0)
|
||||||
|
{
|
||||||
|
const TRectype& riga = contsan.row(ultimariga);
|
||||||
data = riga.get_date(CON_DATACON);
|
data = riga.get_date(CON_DATACON);
|
||||||
if (data >= app()._dataud)
|
if (data >= app()._dataud)
|
||||||
filtrato = FALSE;
|
filtrato = FALSE;
|
||||||
@ -418,6 +422,7 @@ bool TChiusuraPeriodica::filter_func_chiusura(const TRelation* rel)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return filtrato;
|
return filtrato;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user