Patch level : 12.0 896
Files correlati : fp0.exe Commento : Corretta esportazione fatture per esteri
This commit is contained in:
parent
0de744bf58
commit
63fab2a8ae
@ -1546,9 +1546,14 @@ bool TDoc_fp::doc_to_paf(TDocumentoEsteso& doc)
|
||||
}
|
||||
else if(cliente.stato_partita_IVA() != "IT")
|
||||
{
|
||||
paf0400f.set("P4_FISCIVAPAESE", cliente.stato_partita_IVA());
|
||||
const TString& stato_paiv = cliente.stato_partita_IVA();
|
||||
paf0400f.set("P4_FISCIVAPAESE", stato_paiv.full() ? stato_paiv : cliente.stato_residenza_ISO());
|
||||
paf0400f.set("P4_FISCIVACOD", cliente.codice_fiscale());
|
||||
}
|
||||
paf0400f.set("P4_CODFISC", cliente.codice_fiscale());
|
||||
else
|
||||
{
|
||||
paf0400f.set("P4_CODFISC", cliente.codice_fiscale());
|
||||
}
|
||||
#else
|
||||
paf0400f.set("P4_FISCIVAPAESE", "IT");
|
||||
paf0400f.set("P4_FISCIVACOD", "00261170039");
|
||||
|
Loading…
x
Reference in New Issue
Block a user