付款会计科目过滤

This commit is contained in:
程小伟 2025-03-07 13:50:34 +08:00
parent 9346e2395c
commit 4d7fb3b51e
1 changed files with 5 additions and 6 deletions

View File

@ -37,16 +37,15 @@ public class PayBillFilterPlugin extends AbstractBillPlugIn implements Plugin, B
List<QFilter> qFilterList = new ArrayList<>();//存储过滤条件
String numbers="122102,122103,12210301,12210302,12210303,12210399,122104,122108,122109," +
"12210901,1221090101,1221090102,1221090103,1221090105,1221090106,12210902,122112," +
"122199";
"122199";//其他应收账款
List<String> list = Arrays.asList(numbers.split(","));
qFilterList.add(new QFilter("number", QCP.like,"2202%")//应付账款
.or(new QFilter("number", QCP.like,"2241%"))//其他应付账款
.or(new QFilter("number", QCP.like,"1221%"))//其他应收账款
.or(new QFilter("number", QCP.like,"1123%"))//预付账款
.or(new QFilter("number", QCP.in,list))//预付账款
);
qFilterList.add(new QFilter("isleaf", QCP.equals,true));//两个add 是and的意思
// arg0.setCustomQFilters(qFilterList);
.or(new QFilter("number", QCP.in,list)));
qFilterList.add(new QFilter("isleaf", QCP.equals,true));
arg0.setCustomQFilters(qFilterList);//设置F7选择框的筛选条件
}