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:
parent
5ddb89d148
commit
4fa8e6ddaa
@ -161,9 +161,17 @@ bool TSbloccoSospesi::preprocess_page(int file, int counter)
|
|||||||
TDate datafinesi(NULLDATE);
|
TDate datafinesi(NULLDATE);
|
||||||
TDate datafineaf(NULLDATE);
|
TDate datafineaf(NULLDATE);
|
||||||
if (statosi == "SO")
|
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")
|
if (statoaf == "SO")
|
||||||
|
{
|
||||||
datafineaf = recsog.get_date(SOG_FINESOSAF);
|
datafineaf = recsog.get_date(SOG_FINESOSAF);
|
||||||
|
if ((datafine == datafineaf) && (stato == statoaf) && (pros_stato != FINE_SOSPENSIONE))
|
||||||
|
datafineaf = NULLDATE;
|
||||||
|
}
|
||||||
TString80 operazione = "";
|
TString80 operazione = "";
|
||||||
|
|
||||||
if (stato=="SO" && pros_stato==FINE_SOSPENSIONE && datafine.ok() && datafine<=app()._data_sblocco)
|
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);
|
datafine = recsog.get_date(SOG_DATA_PROS);
|
||||||
TDate datafinesi(NULLDATE);
|
TDate datafinesi(NULLDATE);
|
||||||
TDate datafineaf(NULLDATE);
|
TDate datafineaf(NULLDATE);
|
||||||
if (statosi == "SO")
|
if (statosi == "SO")
|
||||||
datafinesi = recsog.get_date(SOG_FINESOSSI);
|
{
|
||||||
|
datafinesi = recsog.get_date(SOG_FINESOSSI);
|
||||||
|
if ((stato == statosi) && (statopros != FINE_SOSPENSIONE))
|
||||||
|
datafinesi = NULLDATE;
|
||||||
|
}
|
||||||
|
|
||||||
if (statoaf == "SO")
|
if (statoaf == "SO")
|
||||||
|
{
|
||||||
datafineaf = recsog.get_date(SOG_FINESOSAF);
|
datafineaf = recsog.get_date(SOG_FINESOSAF);
|
||||||
|
if ((stato == statoaf) && (statopros != FINE_SOSPENSIONE))
|
||||||
|
datafineaf = NULLDATE;
|
||||||
|
}
|
||||||
filtrato = (datafine.ok()) && (datafine <= app()._data_sblocco) && (statopros == FINE_SOSPENSIONE);
|
filtrato = (datafine.ok()) && (datafine <= app()._data_sblocco) && (statopros == FINE_SOSPENSIONE);
|
||||||
if ((!filtrato) && (datafinesi.ok() || datafineaf.ok()))
|
if ((!filtrato) && (datafinesi.ok() || datafineaf.ok()))
|
||||||
filtrato = ((datafinesi.ok() && (datafinesi <= app()._data_sblocco)) || (datafineaf.ok() && (datafineaf <= app()._data_sblocco)));
|
filtrato = ((datafinesi.ok() && (datafinesi <= app()._data_sblocco)) || (datafineaf.ok() && (datafineaf <= app()._data_sblocco)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user