Correzioni al giornale

git-svn-id: svn://10.65.10.50/trunk@917 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
nik 1995-01-26 16:24:44 +00:00
parent 80f9fa5396
commit f0dc876f49

View File

@ -1544,16 +1544,34 @@ 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()
{
const int aep = _ae - 1;
const int aep = es_prec(_ae);
bool gia_stampati = TRUE;
TDate inizio_ep, fine_ep;
if (aep <= 0)
if (aep == 0) // = e' il primo esercizio
return TRUE;
else
get_date_aep(aep,&inizio_ep, &fine_ep);
else
get_date_aep(aep,&inizio_ep, &fine_ep);
#ifdef DBG
TString instr(inizio_ep.string());