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
This commit is contained in:
mtollari 2017-10-04 10:17:55 +00:00
parent d757f386ab
commit eec53aee87
2 changed files with 13 additions and 11 deletions

View File

@ -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())

View File

@ -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;