diff --git a/cg/cg3400.cpp b/cg/cg3400.cpp index 6c7355759..03725e62d 100755 --- a/cg/cg3400.cpp +++ b/cg/cg3400.cpp @@ -335,7 +335,6 @@ void CG3400_application::get_dati_ditta () _cofi = _anag->get(ANA_COFI); _paiva = _anag->get(ANA_PAIV); - // _ragsoc = _anag->get(ANA_RAGSOC); _comunefis = _anag->get(ANA_COMRF); if (_comunefis.empty()) @@ -1428,27 +1427,20 @@ if (comune.not_empty() || prov.not_empty() || capcf.not_empty()) if (tipoa == 'F') { TString80 comna; - // TString80 viana; TString16 datana, codcomna, provna, capna, statona; - TLocalisamfile anafis (LF_ANAGFIS); - - anafis.zero(); - anafis.put("CODANAGR", codanagr); - if (anafis.read() != NOERR) anafis.zero(); - - datana = anafis.get("DATANASC"); + datana = _clifo->get("DATANASC"); if (datana.not_empty()) { - codcomna = anafis.get("COMNASC"); + codcomna = _clifo->get("COMNASC"); TRectype dep = look_com (codcomna); comna = dep.get(COM_DENCOM); provna = dep.get(COM_PROVCOM); capna = dep.get(COM_CAPCOM); - statona = anafis.get("STATO"); + statona = dep.get("STATO"); sprintf (riga, "@%dg%s %s %s %s", POSCONTO, (const char*)datana,