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