- [x] 写银行日记账;(SAP反清账接口按钮-红字收款单使用该操作推送sap)
- [x] 优化付款单点击业务大类报错 s
This commit is contained in:
parent
fff338d889
commit
6c761d0ab3
|
|
@ -61,7 +61,7 @@ public class ClaimFormPlugin extends AbstractFormPlugin implements Plugin , Befo
|
|||
case "shjh_bizbig":
|
||||
//业务大类根据收款类型过滤
|
||||
//非认领单,取消逻辑
|
||||
if ("cas_claimbill".equals(entityId)){
|
||||
if (!"cas_claimbill".equals(entityId)){
|
||||
return;
|
||||
}
|
||||
QFilter q2 = null;
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ import kd.bos.entity.validate.AbstractValidator;
|
|||
import kd.bos.entity.validate.ErrorLevel;
|
||||
import kd.bos.logging.Log;
|
||||
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.operation.SaveServiceHelper;
|
||||
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_ispushsap",true);//sap已推送标记
|
||||
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{
|
||||
|
|
|
|||
Loading…
Reference in New Issue