收款单携带客户优化4

This commit is contained in:
李贵强 2025-07-02 18:45:03 +08:00
parent ca1ba62348
commit 14b22b048a
1 changed files with 2 additions and 1 deletions

View File

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