From 4fa8e6ddaabc6459c39fe3cc79494d7064beae31 Mon Sep 17 00:00:00 2001 From: cris Date: Thu, 26 Feb 2004 10:36:28 +0000 Subject: [PATCH] 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 --- at/at0700.cpp | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/at/at0700.cpp b/at/at0700.cpp index 17263ee3a..5e4874079 100755 --- a/at/at0700.cpp +++ b/at/at0700.cpp @@ -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)));