付款凭证推送sap,有个点要修改一下,就是这个特殊总账标识为W时,代表是票据,需要传一些票据字段

--s
This commit is contained in:
weiyunlong 2025-06-18 17:44:33 +08:00
parent bbfd2d8738
commit fb167ab6a6
1 changed files with 30 additions and 23 deletions

View File

@ -122,6 +122,12 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
String oppunit = beiIntelpay.getString("oppunit");//收款入账中心的对方户名
bill.set("shjh_dfhm", oppunit);//收款单备注字段
bill.set("payertype", "bd_customer");//付款人类型:客户
// 2025/6/18 优化 先根据规则指定的付款人赋值
DynamicObject ePayerid = entry.getDynamicObject("e_payerid");
if (null != ePayerid) {
bill.set("payer", ePayerid.getPkValue()); //付款人id
bill.set("payername", ePayerid.getString("name")); //付款人名称
}else {
DynamicObject bd_customer = BusinessDataServiceHelper.loadSingle("bd_customer", new QFilter[]{new QFilter("name", QCP.equals, oppunit)});
if (null != bd_customer) {
bill.set("payer", bd_customer.getPkValue()); //付款人id
@ -156,6 +162,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
}
}
}
DynamicObject shjhBizbig = (DynamicObject) bill.get("shjh_bizebig");//收款单的业务大类
if (null == shjhBizbig) {