From 7d04d7aabdfd475a0ffc9b023328fadc429b100f Mon Sep 17 00:00:00 2001 From: mtollari Date: Mon, 24 Jul 2017 15:19:20 +0000 Subject: [PATCH] Patch level : 12.0 428 Files correlati : tf Commento : - Sistemati decimali, sono spariti a caso - Sistemato estero non CEE git-svn-id: svn://10.65.10.50/branches/R_10_00@23989 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/tf/tf0100.cpp | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/tf/tf0100.cpp b/src/tf/tf0100.cpp index 17a86be5b..d6fd4bbb5 100644 --- a/src/tf/tf0100.cpp +++ b/src/tf/tf0100.cpp @@ -396,11 +396,10 @@ const TString& TTrFa_record::var2str(const TString& fldname, const TVariant& var const TFieldtypes vt = var.type(); if (vt == _realfld) { - const TCurrency v(var.as_real(), "", ZERO, fldname.find("IMPONIBILE")>0 || fldname.find("IMPOSTA")>0); + const real r = var.as_string(); TString& tmp = get_tmp_string(); - tmp << '\'' << v.string() << '\''; - tmp.replace(',','.'); - return tmp; + tmp << '\'' << r.string() << '\''; + return tmp; } if (vt == _datefld) { @@ -1106,7 +1105,7 @@ bool TTrFa_app::tff0400(TSheet_field& sheet) TRectype r_cedeprest = getCli(vtipocf.as_string(), vcodcf.as_string(), voccas.as_string()); TAnagrafica cedeprest; - if(vtipocf.as_string() == "C" && vcodcf.as_string() == "2327") + if(vtipocf.as_string() == "C" && vcodcf.as_string() == "3566") bool tolla = true; // Con l'uscita di questo programma è stato messo un collegamento in prima nota @@ -1215,8 +1214,8 @@ bool TTrFa_app::tff0400(TSheet_field& sheet) TString nome; for(int i = 2; i < nomeCog.items(); i++) nome << nomeCog.get(i) << " "; - tff0400f.set("P4_ANANOME", cognome); - tff0400f.set("P4_ANACOGNOME", nome); + tff0400f.set("P4_ANANOME", nome); + tff0400f.set("P4_ANACOGNOME", cognome); } else rsoc = true;