付款会计科目过滤
This commit is contained in:
parent
91489a9398
commit
9346e2395c
|
@ -35,9 +35,15 @@ public class PayBillFilterPlugin extends AbstractBillPlugIn implements Plugin, B
|
|||
//只有捕获控件 才执行业务逻辑
|
||||
if(zcgjPaycontract != null && name.equals(ACCOUNT_ITEM)){
|
||||
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";
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue