Patch level : 1.7 at 682

Files correlati     : at0.exe
Ricompilazione Demo : [ ]
Commento            : Sblocco sospesi: corretto sblocco nella seconda parte relativa alle idonetia


git-svn-id: svn://10.65.10.50/trunk@11779 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
cris 2004-02-26 10:36:28 +00:00
parent 5ddb89d148
commit 4fa8e6ddaa

View File

@ -161,9 +161,17 @@ bool TSbloccoSospesi::preprocess_page(int file, int counter)
TDate datafinesi(NULLDATE);
TDate datafineaf(NULLDATE);
if (statosi == "SO")
datafinesi = recsog.get_date(SOG_FINESOSSI);
{
datafinesi = recsog.get_date(SOG_FINESOSSI);
if ((datafine == datafinesi) && (stato == statosi) && (pros_stato != FINE_SOSPENSIONE))
datafinesi = NULLDATE;
}
if (statoaf == "SO")
{
datafineaf = recsog.get_date(SOG_FINESOSAF);
if ((datafine == datafineaf) && (stato == statoaf) && (pros_stato != FINE_SOSPENSIONE))
datafineaf = NULLDATE;
}
TString80 operazione = "";
if (stato=="SO" && pros_stato==FINE_SOSPENSIONE && datafine.ok() && datafine<=app()._data_sblocco)
@ -398,10 +406,19 @@ bool TSbloccoSospesi::filter_func_sbloccosospesi(const TRelation* rel)
datafine = recsog.get_date(SOG_DATA_PROS);
TDate datafinesi(NULLDATE);
TDate datafineaf(NULLDATE);
if (statosi == "SO")
datafinesi = recsog.get_date(SOG_FINESOSSI);
if (statosi == "SO")
{
datafinesi = recsog.get_date(SOG_FINESOSSI);
if ((stato == statosi) && (statopros != FINE_SOSPENSIONE))
datafinesi = NULLDATE;
}
if (statoaf == "SO")
{
datafineaf = recsog.get_date(SOG_FINESOSAF);
if ((stato == statoaf) && (statopros != FINE_SOSPENSIONE))
datafineaf = NULLDATE;
}
filtrato = (datafine.ok()) && (datafine <= app()._data_sblocco) && (statopros == FINE_SOSPENSIONE);
if ((!filtrato) && (datafinesi.ok() || datafineaf.ok()))
filtrato = ((datafinesi.ok() && (datafinesi <= app()._data_sblocco)) || (datafineaf.ok() && (datafineaf <= app()._data_sblocco)));