From 912c9e9c89b2fbf378cbf5f9403a6fc52880dd02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Wed, 2 Jul 2025 11:59:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E5=8D=95=E6=90=BA=E5=B8=A6?= =?UTF-8?q?=E5=AE=A2=E6=88=B7=E4=BC=98=E5=8C=962?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java b/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java index 5a5157d..3f65b7f 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java @@ -619,7 +619,9 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme bill.set("payername", ePayerid.getString("name")); //付款人名称 } else { //3.规则生单未配置客户——>取收款入账中心客户 - DynamicObject bd_customer = BusinessDataServiceHelper.loadSingle("bd_customer", new QFilter[]{new QFilter("name", QCP.equals, oppunit)}); + QFilter customerFilter = new QFilter("name", QCP.equals, oppunit); + customerFilter.and(new QFilter("useorg.id",QCP.equals,companyId)); + DynamicObject bd_customer = BusinessDataServiceHelper.loadSingle("bd_customer", customerFilter.toArray()); if (null != bd_customer) { bill.set("payer", bd_customer.getPkValue()); //付款人id bill.set("payername", bd_customer.getString("name")); //付款人名称