- 优化付款人类型

--s
This commit is contained in:
weiyunlong 2025-04-21 13:51:35 +08:00
parent e433a31c33
commit 99a33936d8
1 changed files with 4 additions and 0 deletions

View File

@ -352,6 +352,10 @@ public class PaybillPushSapOperation extends AbstractOperationServicePlugIn impl
* 根据收/付款人类型,获取收/付款人编号
*/
private String getCustomerOrSupplierNumber(String payeetype, DynamicObject bill,String type) {
//客户(bd_customer)||供应商(bd_supplier)
if (!"bd_customer".equals(payeetype) && !"bd_supplier".equals(payeetype)) {
return "";
}
String customerOrsupnum = "";
DynamicObject dynamicObject = BusinessDataServiceHelper.loadSingle(Long.valueOf(bill.getString(type)), payeetype);
if (dynamicObject != null) {