付款申请单获取供应商逻辑修改
This commit is contained in:
parent
132b18ddb3
commit
a74b0e6876
|
@ -218,8 +218,18 @@ public class YongyouBIPOperation extends AbstractOperationServicePlugIn implemen
|
|||
ap_recaccount = payrequestinfo.getString("receiveno");
|
||||
payData.put("pk_psndoc","");//非个人业务 不传
|
||||
}
|
||||
String supplierNum = payrequestinfo.getDynamicObject("receiveunit").getString("number");
|
||||
long supplierid = payrequestinfo.getDynamicObject("receiveunit").getLong("id");
|
||||
//关于供应商的编号和ID,需要根据费用登记和付款申请单区别获取
|
||||
String supplierNum = null;
|
||||
long supplierid = 0l;
|
||||
if(isnotext){
|
||||
supplierNum = payrequestinfo.getDynamicObject("receiveunit").getString("number");
|
||||
supplierid = payrequestinfo.getDynamicObject("receiveunit").getLong("id");
|
||||
}else{
|
||||
//付款申请单-收款单位是多类别基础资料 multypereceiveunit
|
||||
supplierNum = payrequestinfo.getDynamicObject("multypereceiveunit").getString("number");
|
||||
supplierid = payrequestinfo.getDynamicObject("multypereceiveunit").getLong("id");
|
||||
}
|
||||
|
||||
payData.put("customer",supplierNum);//客户编码 即使是供应商也传入到该字段
|
||||
payData.put("pk_dept",companyDept[1]);//部门编码(通过公司主体明细表找部门编码)
|
||||
|
||||
|
|
Loading…
Reference in New Issue