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:
parent
9ab172de08
commit
7680220624
@ -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();
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user