From 2a32872d31cf36c37f522d6349687527df68f9f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E8=B4=B5=E5=BC=BA?= Date: Wed, 16 Apr 2025 10:52:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B6=E6=AC=BE=E5=87=AD=E8=AF=81=E4=BC=A0?= =?UTF-8?q?=E8=BE=93=E5=AE=A2=E6=88=B7/=E4=BE=9B=E5=BA=94=E5=95=86?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../operate/RecPushVoucherOperation.java | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecPushVoucherOperation.java b/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecPushVoucherOperation.java index 075c275..8120415 100644 --- a/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecPushVoucherOperation.java +++ b/main/java/shjh/jhzj7/fi/fi/plugin/operate/RecPushVoucherOperation.java @@ -314,21 +314,27 @@ public class RecPushVoucherOperation extends AbstractOperationServicePlugIn impl //查找核算维度 DynamicObjectCollection checkItems = account.getDynamicObjectCollection("checkitementry"); if (checkItems!=null&&checkItems.size()!=0){ + //是否已经反写 + boolean isMark=false; for (DynamicObject checkItem : checkItems) { - //是否已经反写 - boolean isMark=false; //核算维度 - String assTactItemNum = checkItem.getString("asstactitem.number"); - if (assTactItemNum!=null){ - switch (assTactItemNum){ - case "0001"://客户 + String assTactItemName = checkItem.getString("asstactitem.name"); + if (assTactItemName!=null){ + switch (assTactItemName){ + case "客户": + case "客户编码": IT_ITEMS.put("KUNNR", cusOrSupNumber); + isMark=true; break; - case "0005"://供应商 + case "供应商": IT_ITEMS.put("LIFNR", cusOrSupNumber); + isMark=true; break; } } + if (isMark){ + break; + } } } }