优化企业成本核算

This commit is contained in:
xuhaihui 2025-11-27 17:59:36 +08:00
parent e6d0ff8bca
commit a4a6d43073
1 changed files with 5 additions and 10 deletions

View File

@ -125,14 +125,6 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn implements Before
}
}
@Override
public void beforeItemClick(BeforeItemClickEvent evt) {
super.beforeItemClick(evt);
if (evt.getItemKey().equals("zcgj_autofetch")) {
}
}
@Override
public void confirmCallBack(MessageBoxClosedEvent messageBoxClosedEvent) {
super.confirmCallBack(messageBoxClosedEvent);
@ -157,6 +149,7 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn implements Before
this.getModel().setValue("zcgj_cbs", this.getModel().getValue("cbs", rowIndex), subInd);
this.getModel().setValue("zcgj_costtype", this.getModel().getValue("costtype", rowIndex), subInd);
this.getModel().setValue("zcgj_sectype1", this.getModel().getValue("zcgj_sectype", rowIndex), subInd);
this.getModel().setValue("zcgj_zcgj_sub_sectypef7", this.getModel().getValue("zcgj_sectypef7", rowIndex), subInd);
args.setCancel(true);
} else {
this.getView().showTipNotification(ResManager.loadKDString("请先选中1行企业费用成本分摊明细分录行数据", "MaterialCostBillPlugin_1", "ec-ecco-formplugin", new Object[0]));
@ -357,10 +350,12 @@ public class EntCostSplitBillPlugin extends AbstractBillPlugIn implements Before
newEntrySubEntryEntity.set("zcgj_cbs", ec_ecbd_pro_cbs);//成本分解结构
}
if (zcgj_accountcost != null) {
DynamicObject zcgj_sectypef7 = BusinessDataServiceHelper.loadSingle("zcgj_sectypef7", "id",
new QFilter("number", QCP.equals, zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype".toString())).toArray());//二级分类
newEntry.set("costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype"));//成本项
newEntry.set("zcgj_sectype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype"));//二级分类
newEntry.set("zcgj_sectypef7", zcgj_sectypef7);//二级分类
newEntrySubEntryEntity.set("zcgj_costtype", zcgj_accountcost.get("zcgj_acccostentry.zcgj_costtype"));//成本项
newEntrySubEntryEntity.set("zcgj_sectype1", zcgj_accountcost.get("zcgj_acccostentry.zcgj_sectype"));//二级分类
newEntrySubEntryEntity.set("zcgj_zcgj_sub_sectypef7", zcgj_sectypef7);//二级分类
}
newEntry.set("costamount", rptAssistBalanceGx.get("zcgj_debitlocal"));//成本金额
newEntrySubEntryEntity.set("zcgj_costamount", rptAssistBalanceGx.get("zcgj_debitlocal"));//成本金额