From b4464335366455b79b759f6120ab5adcd7c9c733 Mon Sep 17 00:00:00 2001 From: mtollari Date: Wed, 31 May 2017 15:13:19 +0000 Subject: [PATCH] Patch level : 12.0 406 Files correlati : tf Commento : Tolto codice ridondante git-svn-id: svn://10.65.10.50/branches/R_10_00@23858 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- src/tf/tf0200.cpp | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/src/tf/tf0200.cpp b/src/tf/tf0200.cpp index 50cb2d467..f94754e53 100644 --- a/src/tf/tf0200.cpp +++ b/src/tf/tf0200.cpp @@ -436,34 +436,6 @@ void ComLiqPerIva_mask::extractinator() // Per gli amici GTFO // Riga LIA const TRectype rowLia = getLIA(anno); - // Devo sottrarre gli indetraibili, quindi prendo prm e sottraggo - static TRelation rprm(LF_TAB); - TRectype prmFrom(rprm.curr()); prmFrom.put("COD", "PRM");prmFrom.put("CODTAB", anno); - TRectype prmTo(rprm.curr()); prmTo.put("COD" , "PRM");prmTo.put("CODTAB", anno); - - TCursor curPrm(&rprm, "", 1, &prmFrom, &prmTo); - for(curPrm = 0; curPrm.pos() < curPrm.items(); ++curPrm) - { - TRectype rowPrm = curPrm.curr(); - // Controllo il mese - TString codtab = rowPrm.get("CODTAB"); - if(atoi(rowPrm.get("CODTAB").sub(13,15)) != start) continue; - - // Verifico su che registro mi trovo - int tiporeg = rowPrm.get_int("I1"); - - // Verifico che sia Non soggetto - bool nonSogg = rowPrm.get("S5") == "NS"; - if(nonSogg && tiporeg == REG_PAS && totoppas > ZERO) - { - totoppas = totoppas - rowPrm.get_real("R0"); - } - else if (nonSogg && tiporeg == REG_ATT && totopatt > ZERO) - { - totopatt = totopatt - rowPrm.get_real("R0"); - } - - } TString queryIva = "USE RMOVIVA\n"; queryIva << "SELECT (23.REG!=\"\")&&BETWEEN(23.DATAREG,#DADATAREG,#ADATAREG)"; queryIva << "\nJOIN MOV INTO NUMREG==NUMREG\n";