parent
123f689df9
commit
726a8bc9ec
|
|
@ -73,7 +73,7 @@ public class RecBillFromPlugin extends AbstractFormPlugin implements Plugin {
|
||||||
}
|
}
|
||||||
DynamicObject shjhBizsmall = (DynamicObject)this.getModel().getValue("shjh_bizsmall");
|
DynamicObject shjhBizsmall = (DynamicObject)this.getModel().getValue("shjh_bizsmall");
|
||||||
if (null == shjhBizsmall) {
|
if (null == shjhBizsmall) {
|
||||||
// this.getModel().setValue("shjh_bizsmall", entry.getDynamicObject("shjh_e_bizsmall"));
|
this.getModel().setValue("shjh_bizsmall", entry.getDynamicObject("shjh_e_bizsmall"));
|
||||||
}
|
}
|
||||||
DynamicObject shjhCostcenter = (DynamicObject)this.getModel().getValue("shjh_costcenter");
|
DynamicObject shjhCostcenter = (DynamicObject)this.getModel().getValue("shjh_costcenter");
|
||||||
if (null == shjhCostcenter) {
|
if (null == shjhCostcenter) {
|
||||||
|
|
|
||||||
|
|
@ -16,8 +16,10 @@ 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;
|
||||||
|
import shjh.jhzj7.fi.fi.utils.ApiUtils;
|
||||||
import shjh.jhzj7.fi.fi.utils.JhzjUtils;
|
import shjh.jhzj7.fi.fi.utils.JhzjUtils;
|
||||||
import shjh.jhzj7.fi.fi.utils.SysUtils;
|
import shjh.jhzj7.fi.fi.utils.SysUtils;
|
||||||
|
import shjh.jhzj7.fi.fi.utils.domin.ResponseData;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
|
@ -118,6 +120,11 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl
|
||||||
//是否推送SAP:shjh_ispushsap,推送成功更新状态
|
//是否推送SAP:shjh_ispushsap,推送成功更新状态
|
||||||
JSONObject jsonObject = sap_accounVoucher(data, bill.getString("billno"));
|
JSONObject jsonObject = sap_accounVoucher(data, bill.getString("billno"));
|
||||||
if (jsonObject.getIntValue("code") == 0) {
|
if (jsonObject.getIntValue("code") == 0) {
|
||||||
|
ResponseData responseData = ApiUtils.getResponseData(jsonObject);
|
||||||
|
if (responseData!=null){
|
||||||
|
bill.set("shjh_credentialnum",responseData.getNumber());
|
||||||
|
bill.set("shjh_sapfiscalyear",responseData.getYear());
|
||||||
|
}
|
||||||
bill.set("shjh_ispushsap", true);
|
bill.set("shjh_ispushsap", true);
|
||||||
SaveServiceHelper.save(new DynamicObject[]{bill});
|
SaveServiceHelper.save(new DynamicObject[]{bill});
|
||||||
}else {
|
}else {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue