企业成本核算表单插件优化

This commit is contained in:
xuhaihui 2025-09-26 14:34:53 +08:00
parent 829b738ea0
commit b80d62379f
1 changed files with 8 additions and 1 deletions

View File

@ -53,7 +53,14 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn {
new QFilter[]{filter});//核算维度余额取数表(矿山工序维度)
for (DynamicObject rptAssistBalanceGx : rptAssistBalanceGxCollection) {
QFilter filter1 = new QFilter("zcgj_entryentity.zcgj_accountview", QCP.equals, rptAssistBalanceGx.get("zcgj_account"));//科目
QFilter[] qFilter = new QFilter[]{new QFilter("id", QCP.equals, rptAssistBalanceGx.get("zcgj_account"))};
DynamicObject bd_accountview = BusinessDataServiceHelper.loadSingle("bd_accountview",
"id,number,name", qFilter);//会计科目
if (bd_accountview == null) {
continue;
}
QFilter filter1 = new QFilter("zcgj_entryentity.zcgj_accountname", QCP.equals, bd_accountview.getString("name"));//科目名称
filter1.and(new QFilter("zcgj_entryentity.zcgj_accountnumber", QCP.equals, bd_accountview.getString("number")));//科目变化
filter1.and(new QFilter("zcgj_org", QCP.equals, org1.getPkValue()));//组织
DynamicObject zcgj_accountcost = QueryServiceHelper.queryOne("zcgj_accountcost",
"id,zcgj_entryentity.zcgj_costtype,zcgj_entryentity.zcgj_sectype",