- [x] 写银行日记账;(SAP反清账接口按钮-红字收款单使用该操作推送sap)

- [x] 优化付款单点击业务大类报错

s
This commit is contained in:
weiyunlong 2025-05-14 14:32:38 +08:00
parent fff338d889
commit 6c761d0ab3
2 changed files with 10 additions and 1 deletions

View File

@ -61,7 +61,7 @@ public class ClaimFormPlugin extends AbstractFormPlugin implements Plugin , Befo
case "shjh_bizbig": case "shjh_bizbig":
//业务大类根据收款类型过滤 //业务大类根据收款类型过滤
//非认领单,取消逻辑 //非认领单,取消逻辑
if ("cas_claimbill".equals(entityId)){ if (!"cas_claimbill".equals(entityId)){
return; return;
} }
QFilter q2 = null; QFilter q2 = null;

View File

@ -16,6 +16,8 @@ import kd.bos.entity.validate.AbstractValidator;
import kd.bos.entity.validate.ErrorLevel; import kd.bos.entity.validate.ErrorLevel;
import kd.bos.logging.Log; import kd.bos.logging.Log;
import kd.bos.logging.LogFactory; import kd.bos.logging.LogFactory;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper; import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper; import kd.bos.servicehelper.operation.SaveServiceHelper;
import kd.sdk.plugin.Plugin; import kd.sdk.plugin.Plugin;
@ -137,6 +139,13 @@ public class RecRedPushOperation extends AbstractOperationServicePlugIn implemen
recBill.set("shjh_sapfiscalyear",key.length() >= 4 ? key.substring(key.length() - 4) : key); recBill.set("shjh_sapfiscalyear",key.length() >= 4 ? key.substring(key.length() - 4) : key);
recBill.set("shjh_ispushsap",true);//sap已推送标记 recBill.set("shjh_ispushsap",true);//sap已推送标记
SaveServiceHelper.update(recBill); SaveServiceHelper.update(recBill);
DynamicObject bankjournal = BusinessDataServiceHelper.loadSingle("cas_bankjournal", new QFilter("billno",
QCP.equals, recBill.getString("billno")).toArray());
//同步更新银行日记账单(cas_bankjournal)的SAP付款凭证号
if (null != bankjournal) {
bankjournal.set("shjh_credentialnum",key.length() >= 10 ? key.substring(0, 10) : key);
SaveServiceHelper.save(new DynamicObject[]{bankjournal});
}
} }
} }
}else{ }else{