diff --git a/tc/tc0700.cpp b/tc/tc0700.cpp index e8e812296..1bf4472e5 100755 --- a/tc/tc0700.cpp +++ b/tc/tc0700.cpp @@ -354,22 +354,15 @@ bool search_reg(const TRelation& rel, void* pJolly) bool TTS_campo_sender::create() { - bool ok = TTS_sender::create(); - - if (ok) - { - TRelation rel(LF_CAUSALI); - TCursor c(&rel); - ok = c.scan(search_reg, &_caus_regolarizzazione, "Ricerca causali di regolarizzazione"); - } + TRelation rel(LF_CAUSALI); + TCursor c(&rel); + bool ok = c.scan(search_reg, &_caus_regolarizzazione, "Ricerca causali di regolarizzazione"); + TLocalisamfile clifo(LF_CLIFO); bool big_cli_code = false; clifo.put(CLI_TIPOCF, "C"); clifo.put(CLI_CODCF, 100000L); - - - if (!((clifo.read(_isgteq) == _iseof) || (clifo.get(CLI_TIPOCF) == "F"))) big_cli_code = true; if (!big_cli_code) @@ -380,11 +373,10 @@ bool TTS_campo_sender::create() if (clifo.read(_isgteq) != _iseof) big_cli_code = true; } - if (big_cli_code) riclassifica().add("TSNOHCLI", EMPTY_STRING); - return ok; + return ok && TTS_sender::create(); } int tc0700(int argc, char* argv[])