aLst = new QueryResultSet<Invoice>();
aLst.add(new Invoice(oDms, sDocId));
} else {
TaxPayer oTxpr = new TaxPayer(oDms, sTaxPayer);
if (dtFrom!=null || dtTo!=null)
aLst = oTxpr.queryInvoices(oSes, bProcessed, bApproved, bHasMistakes, dtFrom, dtTo, sRecipient, sBiller, sServiceFlavor, iMaxRows, iOffset);
else if (aAmountRange!=null || aMonthsRange!=null || aYearsRange!=null || sSearchStr.length()>0)
aLst = oTxpr.queryInvoices(oSes, bProcessed, bApproved, bHasMistakes, aAmountRange, aMonthsRange, aYearsRange, sRecipient, sBiller, sServiceFlavor, sSearchStr, iMaxRows, iOffset);
else
aLst = oTxpr.queryInvoices(oSes, bProcessed, bApproved, bHasMistakes, dtFrom, dtTo, sRecipient, sBiller, sServiceFlavor, iMaxRows, iOffset);
}