From 4814dc9afaabc4f2c2ab2095b5b095f6445406a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Wed, 25 Jun 2025 17:24:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E8=A7=84=E5=88=99=E7=94=9F=E5=8D=95?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=B5=84=E9=87=91=E7=BB=84=E7=BB=87=E8=BF=87?= =?UTF-8?q?=E6=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java | 3 +++ 1 file changed, 3 insertions(+) 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 6cb31c8..72d63b6 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecBillSaveOperation.java @@ -120,6 +120,7 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme * 1)有就携带至收款单上2)系统中没有这个客户(1.如果开了取映射表按钮,就去映射表中找,找到即携带2.如果没开/没找到就取不明确客户)修改付款人类型改为客户 */ String oppunit = beiIntelpay.getString("oppunit");//收款入账中心的对方户名 + Long companyId = beiIntelpay.getLong("company.id");//收款入账中心的资金组织id bill.set("shjh_dfhm", oppunit);//收款单备注字段 bill.set("payertype", "bd_customer");//付款人类型:客户 // 2025/6/18 优化: 先根据规则指定的付款人赋值 @@ -136,6 +137,8 @@ public class RecBillSaveOperation extends AbstractOperationServicePlugIn impleme boolean shjhEGetcustomer = entry.getBoolean("shjh_e_getcustomer"); //取规则得映射表客户标记 if (shjhEGetcustomer) { QFilter qFilter = new QFilter("shjh_dfhm", QCP.equals, oppunit); + //新增收款入账中心-资金组织&&映射表组织过滤 + qFilter.and(new QFilter("shjh_org.id",QCP.equals,companyId)); //对方户名与客户名称映射表 shjh_dfhmcust DynamicObject shjhDfhmcust = BusinessDataServiceHelper.loadSingle("shjh_dfhmcust", qFilter.toArray()); if (null != shjhDfhmcust) {