diff --git a/cg/cg4200.cpp b/cg/cg4200.cpp index 8e1f9e6fe..2c879c950 100755 --- a/cg/cg4200.cpp +++ b/cg/cg4200.cpp @@ -29,7 +29,7 @@ public: bool TCopia_archivi::copyfile(int logicnum, long from, long to) { if (from > 0) set_firm(from); - else prefhndl->set("com"); + else prefix().set("com"); TSystemisamfile file(logicnum); TFilename t; t.tempdir(); t << "/tr" << logicnum; @@ -82,7 +82,7 @@ void TCopia_archivi::clearivd(long to) void TCopia_archivi::copyivd(long from, long to) { if (from > 0) set_firm(from); - else prefhndl->set("com"); + else prefix().set("com"); TLocalisamfile pcon(LF_PCON); TAssoc_array riclass; @@ -170,7 +170,7 @@ bool TCopia_archivi::menu(MENU_TAG) const bool copy_ivd = _msk->get_bool(F_IVD); if (copy_pcon || copy_causali || copy_clifo || copy_ivd) { - if (prefhndl->exist(to_firm)) + if (prefix().exist(to_firm)) { set_firm(to_firm); TLocalisamfile mov(LF_MOV); diff --git a/cg/cg4300.cpp b/cg/cg4300.cpp index 09dbcdc6d..9d6537805 100755 --- a/cg/cg4300.cpp +++ b/cg/cg4300.cpp @@ -436,7 +436,7 @@ void TLiquidazione_app::build_nomiditte(TProgind* pnd) for (dt.first(); !dt.eof(); dt.next()) { // check no archivi - bool good = prefhndl->exist(dt.get_long("CODDITTA")); + bool good = prefix().exist(dt.get_long("CODDITTA")); if (good) { diff --git a/cg/cg4400.cpp b/cg/cg4400.cpp index 5ca7a78ec..f1d0b50f2 100755 --- a/cg/cg4400.cpp +++ b/cg/cg4400.cpp @@ -288,7 +288,7 @@ bool CG4400_application::mask_libun (TMask_field& f, KEY k) for (int i = 0; i < app()._ditte->items(); i++) { long ditta = app()._ditte->row(i).get_long(1); - if (prefhndl->exist(ditta)) + if (prefix().exist(ditta)) { app().set_firm(ditta); if (cod.not_empty()) @@ -625,7 +625,7 @@ void CG4400_application::build_nomiditte(TProgind* pnd) for (dt.first(); !dt.eof(); dt.next()) { // check no archivi - bool good = prefhndl->exist(dt.get_long("CODDITTA")); + bool good = prefix().exist(dt.get_long("CODDITTA")); if (good) { // check no parametri liquidazione