Correzioni al giornale
git-svn-id: svn://10.65.10.50/trunk@917 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
80f9fa5396
commit
f0dc876f49
@ -1544,13 +1544,31 @@ void CG3400_application::get_date_aep(int aep, TDate* in, TDate* fin)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const int es_prec(const int es_corr)
|
||||||
|
{
|
||||||
|
TTable ese("ESC");
|
||||||
|
TString16 first;
|
||||||
|
TString codtab;
|
||||||
|
|
||||||
|
ese.first();
|
||||||
|
first = ese.get("CODTAB");
|
||||||
|
|
||||||
|
codtab << es_corr;
|
||||||
|
codtab.format("%04d");
|
||||||
|
|
||||||
|
if (codtab == first)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
return es_corr - 1;
|
||||||
|
}
|
||||||
|
|
||||||
bool CG3400_application::controlla_mov_aep()
|
bool CG3400_application::controlla_mov_aep()
|
||||||
{
|
{
|
||||||
const int aep = _ae - 1;
|
const int aep = es_prec(_ae);
|
||||||
bool gia_stampati = TRUE;
|
bool gia_stampati = TRUE;
|
||||||
TDate inizio_ep, fine_ep;
|
TDate inizio_ep, fine_ep;
|
||||||
|
|
||||||
if (aep <= 0)
|
if (aep == 0) // = e' il primo esercizio
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
get_date_aep(aep,&inizio_ep, &fine_ep);
|
get_date_aep(aep,&inizio_ep, &fine_ep);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user