diff --git a/src/ve/velib03.cpp b/src/ve/velib03.cpp index 795250e55..0af5f0d83 100755 --- a/src/ve/velib03.cpp +++ b/src/ve/velib03.cpp @@ -3931,10 +3931,11 @@ void TDocumento::update_descriptions() TCausale * TDocumento::get_caus_cont(int year) const { - TString4 codcaus = tipo().causale(); + TString4 codcaus; TToken_string key; - const TString fld_cms_cont = ini_get_string(CONFIG_DITTA, "CMSCNTFIELD", "ve"); + const TString16 fld_cms_cont = ini_get_string(CONFIG_DITTA, "ve", "CMSCNTFIELD"); // Campo delle commesse per reperire la causale TCausale * causale = nullptr; + static TCategorie_doc __cats; if (year == 0) year = get_date(DOC_DATADOC).year(); @@ -3957,7 +3958,6 @@ TCausale * TDocumento::get_caus_cont(int year) const #endif } } - if (codcaus.blank() && fld_cms_cont.full()) { const TString& cms = commessa_principale(); diff --git a/src/ve/velib04.h b/src/ve/velib04.h index f1a98a8ba..0fb37037c 100755 --- a/src/ve/velib04.h +++ b/src/ve/velib04.h @@ -431,7 +431,7 @@ class TContabilizzazione : public TElaborazione // velib04b TViswin* _viswin; // Visualizzazione log di elaborazione TBill _conto_errato; // Conto da visualizzare in messaggio d'errore bool _check_prev_cont; // Controllare se il documento precedente e' stato contabilizzato - TString16 _fld_cms_cont; // Campo delle commesse per reperire la causale + private: void init(); // Called by constructors only diff --git a/src/ve/velib04b.cpp b/src/ve/velib04b.cpp index 68e1cbb74..b2b0afbbf 100755 --- a/src/ve/velib04b.cpp +++ b/src/ve/velib04b.cpp @@ -935,7 +935,6 @@ bool TContabilizzazione::load_parameters() _spbo_cod = conf.get("SPBOCODIVA","ve"); _check_prev_cont = conf.get_bool("CHECKPREVCONT","ve"); - _fld_cms_cont = conf.get("CMSCNTFIELD","ve"); return true; }