Patch level : 10.0 682

Files correlati     : ve0.exe
Ricompilazione Demo : [ ]
Commento            :
Corretta decodifica fornitori in profili acquisti


git-svn-id: svn://10.65.10.50/trunk@20257 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 2010-03-22 15:44:29 +00:00
parent 62a2f97986
commit 22ad03876d
2 changed files with 5 additions and 3 deletions

View File

@ -137,7 +137,9 @@ const char TTipo_documento::tipocf() const
if (_tipocf < ' ')
{
TFilename pn; profile_name(pn);
(char&)_tipocf = ini_get_string(pn, "MAIN", "TIPOCF", "C")[0];
//(char&)_tipocf = ini_get_string(pn, "MAIN", "TIPOCF", "C")[0]; // NON FUNZIONA: ritorna sempre 'C'
TConfig ini(pn, "MAIN");
(char&)_tipocf = ini.get("TIPOCF", NULL, -1, "C")[0];
}
return _tipocf;
}

View File

@ -823,7 +823,7 @@ void TDocumento_mask::occ2mask()
void TDocumento_mask::cli2mask(bool force_load)
{
TCli_for & c = doc().clifor();
TCli_for& c = doc().clifor();
const bool onload = !is_running();
@ -846,7 +846,7 @@ void TDocumento_mask::cli2mask(bool force_load)
if(force_load || !onload)
{
short pos = id2pos(F_CODVAL);
const TString16 codval = c.get(CLI_CODVAL); // Attenzione: Non usare TString& qui!
const TString4 codval = c.get(CLI_CODVAL); // Attenzione: Non usare TString& qui!
if (pos >= 0)
set(F_CODVAL, codval, TRUE);