From eec53aee87ae2a6be8a76c606d13597a6b66bd64 Mon Sep 17 00:00:00 2001 From: mtollari Date: Wed, 4 Oct 2017 10:17:55 +0000 Subject: [PATCH] Patch level : 12.0 462 Files correlati : tf Commento : - Sistemato nome e cognome per clifo occasionali git-svn-id: svn://10.65.10.50/branches/R_10_00@24129 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/tf/tf0100.cpp | 12 +++++++----- src/tf/tfutility.cpp | 12 ++++++------ 2 files changed, 13 insertions(+), 11 deletions(-) diff --git a/src/tf/tf0100.cpp b/src/tf/tf0100.cpp index 130f0851c..fafb1ee8a 100644 --- a/src/tf/tf0100.cpp +++ b/src/tf/tf0100.cpp @@ -1148,7 +1148,8 @@ bool TTrFa_app::tff0400(TSheet_field& sheet) TVariant vtipocf = strarr->get(_tipocf), vcodcf = strarr->get(_codcf), voccas = strarr->get(_occas); #ifdef DBG - if(vtipocf.as_string() == "C" && (vcodcf.as_string() == "2699" || vcodcf.as_string() == "3610")) + //if(vtipocf.as_string() == "C" && (vcodcf.as_string() == "2699" || vcodcf.as_string() == "3610")) + if(voccas.as_string().full()) bool tolla = true; #endif @@ -1210,9 +1211,10 @@ bool TTrFa_app::tff0400(TSheet_field& sheet) if(cedeprest.ok()) // Con bolle doganali non a posto impazzisce { // Sono sicuro che se è di tipo 3,7 o 8 ha la ragione sociale - char tipo = r_cedeprest.get_char(CLI_ALLEG); - bool rsoc = cedeprest.giuridica() || (tipo == '3' || tipo == '7' || tipo == '8' || tipo == '\0'); - bool privato = tipo == '6'; + int tipo = cedeprest.inserimento_in_allegato();//r_cedeprest.get_char(CLI_ALLEG); + int pippo = 'C'; + bool rsoc = cedeprest.giuridica() || (tipo == 3 || tipo == 7 || tipo == 8 || tipo == 0); + bool privato = tipo == 6 || (cedeprest.estero() && cedeprest.fisica()); if(foundBolla && !foundBollaCli) { @@ -1536,7 +1538,7 @@ void TTrFa_app::main_loop() { // Sposto SSA if(!copySSA()) return; - + while (msk().run() == K_ENTER) { if(msk().checkNotEmpty()) diff --git a/src/tf/tfutility.cpp b/src/tf/tfutility.cpp index df25050c9..1b397fe4d 100644 --- a/src/tf/tfutility.cpp +++ b/src/tf/tfutility.cpp @@ -20,13 +20,13 @@ TRectype getCli(const TString& tipocf, const TString& codcf, const TString& ocfp const TRectype& cli = cache().get(LF_CLIFO, key); if(cli.get_bool("OCCAS")) { - TRectype cli(LF_CLIFO); + TRectype clifo(LF_CLIFO); TRectype occas = cache().get(LF_OCCAS, ocfpi); - cli.put("RAGSOC" , occas.get("RAGSOC")); - cli.put("CODRFSO" , ""); - cli.put("PAIV" , occas.get("PAIV")); - cli.put("COFI" , occas.get("COFI")); - return cli; + clifo.put("RAGSOC" , occas.get("RAGSOC")); + clifo.put("CODRFSO" , ""); + clifo.put("PAIV" , occas.get("PAIV")); + clifo.put("COFI" , occas.get("COFI")); + return clifo; } else return cli;