排程单退单报错报错
This commit is contained in:
		
							parent
							
								
									43fd9bee1a
								
							
						
					
					
						commit
						8f7144baba
					
				|  | @ -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);//付款时间 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue