Patch level : 12.0 1218

Files correlati     : ve0.exe

Commento:
LA conabilizzazione per commessa non trovava più la commessa giusta
This commit is contained in:
Alessandro Bonazzi 2022-11-23 19:01:56 +01:00
parent 9ab172de08
commit 7680220624
3 changed files with 4 additions and 5 deletions

View File

@ -3931,10 +3931,11 @@ void TDocumento::update_descriptions()
TCausale * TDocumento::get_caus_cont(int year) const TCausale * TDocumento::get_caus_cont(int year) const
{ {
TString4 codcaus = tipo().causale(); TString4 codcaus;
TToken_string key; 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; TCausale * causale = nullptr;
static TCategorie_doc __cats;
if (year == 0) if (year == 0)
year = get_date(DOC_DATADOC).year(); year = get_date(DOC_DATADOC).year();
@ -3957,7 +3958,6 @@ TCausale * TDocumento::get_caus_cont(int year) const
#endif #endif
} }
} }
if (codcaus.blank() && fld_cms_cont.full()) if (codcaus.blank() && fld_cms_cont.full())
{ {
const TString& cms = commessa_principale(); const TString& cms = commessa_principale();

View File

@ -431,7 +431,7 @@ class TContabilizzazione : public TElaborazione // velib04b
TViswin* _viswin; // Visualizzazione log di elaborazione TViswin* _viswin; // Visualizzazione log di elaborazione
TBill _conto_errato; // Conto da visualizzare in messaggio d'errore TBill _conto_errato; // Conto da visualizzare in messaggio d'errore
bool _check_prev_cont; // Controllare se il documento precedente e' stato contabilizzato bool _check_prev_cont; // Controllare se il documento precedente e' stato contabilizzato
TString16 _fld_cms_cont; // Campo delle commesse per reperire la causale
private: private:
void init(); // Called by constructors only void init(); // Called by constructors only

View File

@ -935,7 +935,6 @@ bool TContabilizzazione::load_parameters()
_spbo_cod = conf.get("SPBOCODIVA","ve"); _spbo_cod = conf.get("SPBOCODIVA","ve");
_check_prev_cont = conf.get_bool("CHECKPREVCONT","ve"); _check_prev_cont = conf.get_bool("CHECKPREVCONT","ve");
_fld_cms_cont = conf.get("CMSCNTFIELD","ve");
return true; return true;
} }