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
This commit is contained in:
mtollari 2017-05-31 15:13:19 +00:00
parent 1a17a58aaf
commit b446433536

View File

@ -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";