diff --git a/src/ps/ps0430600.cpp b/src/ps/ps0430600.cpp index f371107fb..a175471b4 100644 --- a/src/ps/ps0430600.cpp +++ b/src/ps/ps0430600.cpp @@ -224,16 +224,12 @@ bool TTessan_app::elabPayment(int anno, TString userPath) // Movimento attuale TRectype rowMov = curMov.curr(); TString codcaus(rowMov.get("CODCAUS")); - if(codcaus.starts_with("P")) + if(codcaus.starts_with("P") || codcaus == "I03") { if(codcaus == "P98") - { p98.add(rowMov.get("NUMREG")); - } else if(codcaus != "P99") - { p.add(rowMov.get("NUMREG")); - } } } @@ -305,7 +301,6 @@ bool TTessan_app::elabPayment(int anno, TString userPath) // Controllo che č di una persona fisica if(rowRMov.get("GRUPPO") != "2" || rowRMov.get("CONTO") != "1") continue; - if(!findErase(&p, rowRMov.get_long("NUMREG"))) continue; //bool trovato = false; @@ -362,9 +357,8 @@ bool TTessan_app::elabPayment(int anno, TString userPath) for(int i = 0; i < numCli; i++) { - if(clienti[i].codcf == rowMovOld.get_long("CODCF") && clienti[i].p98 > 0) // Trova pių spesso il cliente diverso dal codice all'inizio + if(clienti[i].codcf == rowMovOld.get_long("CODCF") && clienti[i].p98 > 0 && clienti[i].importoPagato > 0) // Trova pių spesso il cliente diverso dal codice all'inizio { - // Aggiungo il documento al file TString codcfFilled; codcfFilled << rowMovOld.get("CODCF"); for(int j = codcfFilled.len(); j <= 6; j++) codcfFilled.insert("0",0);