Patch level : 12.0 672
Files correlati : fp Commento : Sistemato controllo codice sdi con aggiunta per stranieri con P.IVA italiana
This commit is contained in:
parent
c41e7d9d8b
commit
fda14eeddd
@ -177,16 +177,19 @@ bool get_coddest(const char tipocf, const long codcf, TString& coddest, TString&
|
||||
TCli_for clifo(tipocf, codcf);
|
||||
coddest = clifo.vendite().get("PADESTIN");
|
||||
pec = clifo.get("PEC");
|
||||
TAnagrafica anag(LF_CLIFO, tipocf, codcf);
|
||||
if (coddest.empty())
|
||||
{
|
||||
if(pec.full() || fp_settings().get_esp_pri_empty())
|
||||
if (pec.full() || fp_settings().get_esp_pri_empty())
|
||||
coddest = "0000000";
|
||||
// Controllo se è straniero
|
||||
else if (TAnagrafica(LF_CLIFO, tipocf, codcf).estero() && fp_settings().get_esp_est())
|
||||
else if (anag.estero() && anag.stato_partita_IVA() != "IT")
|
||||
{
|
||||
coddest = fp_settings().get_esp_est_cod();
|
||||
coddest = fp_settings().get_esp_est() ? fp_settings().get_esp_est_cod() : "";
|
||||
}
|
||||
}
|
||||
else
|
||||
pec = "";
|
||||
// Dopo la versione 1.2 torna sempre true
|
||||
return coddest.full();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user