Patch level : 12.0 890

Files correlati     : f90.exe
Commento            :
- Corretto caricamento moviementi utilizzando un recordset invece che leggere dal file direttamente: non tutti i moviementi venivano letti
- Cambiato idfiscale secondo nuove direttive
This commit is contained in:
Simone Palacino 2019-10-17 12:22:15 +02:00
parent 8f8f959dc8
commit 6c36498345

View File

@ -1100,10 +1100,13 @@ bool TF9_app::estrazione_iva(const bool escluso)
TString statopaiv; statopaiv << cli.get(CLI_STATOPAIV); TString statopaiv; statopaiv << cli.get(CLI_STATOPAIV);
TString idfisc; TString idfisc;
TString numdoc; numdoc << (mov.get(MOV_NUMDOCEXT).full() ? mov.get(MOV_NUMDOCEXT) : mov.get(MOV_NUMDOC)); TString numdoc; numdoc << (mov.get(MOV_NUMDOCEXT).full() ? mov.get(MOV_NUMDOCEXT) : mov.get(MOV_NUMDOC));
if (statopaiv == "IT" || statopaiv.empty()) if (statopaiv == "IT" || statopaiv.empty())
idfisc << (cli.get(CLI_PAIV).empty() ? cli.get(CLI_COFI) : TString("IT") << cli.get(CLI_PAIV)); {
else idfisc << "IT";
idfisc << statopaiv << cli.get(CLI_COFI); // Esteri if (cli.get(CLI_PAIV).full()) // Se non ho la partita IVA e' privato quindi non metto niente solo cod. ISO
idfisc << cli.get(CLI_PAIV);
}
else idfisc << statopaiv << cli.get(CLI_COFI); // Esteri
query.cut(0) << "INSERT INTO " F9_IVA " (\n" query.cut(0) << "INSERT INTO " F9_IVA " (\n"
IVA_CODSOC ", " IVA_IDLAN ", " IVA_FLAG_PD ",\n" IVA_CODSOC ", " IVA_IDLAN ", " IVA_FLAG_PD ",\n"