排程单退单报错报错

This commit is contained in:
李贵强 2025-07-29 16:19:17 +08:00
parent 43fd9bee1a
commit 8f7144baba
1 changed files with 4 additions and 2 deletions

View File

@ -72,8 +72,7 @@ public class ScheduleListPlugin extends AbstractListPlugin {
if (bill != null) {
QFilter qFilter = new QFilter("billno", QCP.equals, bill.getString("sourcebillnumber"));
//如果付款申请单不是来源调整单再判断付款申请单来源类型来源费控调用关闭来源sap调用反审核
DynamicObject payapply = BusinessDataServiceHelper.loadSingle("ap_payapply",
"id,billno,shjh_sourceadjustment", qFilter.toArray());
DynamicObject payapply = BusinessDataServiceHelper.loadSingle("ap_payapply", qFilter.toArray());
if (null != payapply) {
//如果付款申请单不是来源调整单则触发状态回写至费控和sap
if (!payapply.getBoolean("shjh_sourceadjustment")) {
@ -197,6 +196,9 @@ public class ScheduleListPlugin extends AbstractListPlugin {
}
jsonObject.put("PaymentAccNum", PaymentAccNum);//付款账号
Date paydate = bill.getDate("paytime");
if (paydate==null){
paydate=new Date();
}
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
String PaymentDate = format.format(paydate);
jsonObject.put("PaymentDate", PaymentDate);//付款时间