收款单携带客户优化3

This commit is contained in:
李贵强 2025-07-02 12:43:36 +08:00
parent 912c9e9c89
commit d3e75f778e
1 changed files with 1 additions and 1 deletions

View File

@ -620,7 +620,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme
} else { } else {
//3.规则生单未配置客户>取收款入账中心客户 //3.规则生单未配置客户>取收款入账中心客户
QFilter customerFilter = new QFilter("name", QCP.equals, oppunit); QFilter customerFilter = new QFilter("name", QCP.equals, oppunit);
customerFilter.and(new QFilter("useorg.id",QCP.equals,companyId)); //customerFilter.and(new QFilter("useorg.id",QCP.equals,companyId));
DynamicObject bd_customer = BusinessDataServiceHelper.loadSingle("bd_customer", customerFilter.toArray()); DynamicObject bd_customer = BusinessDataServiceHelper.loadSingle("bd_customer", customerFilter.toArray());
if (null != bd_customer) { if (null != bd_customer) {
bill.set("payer", bd_customer.getPkValue()); //付款人id bill.set("payer", bd_customer.getPkValue()); //付款人id