From a81fa76d968b7aa8f9019ef2850b9d889c572d40 Mon Sep 17 00:00:00 2001 From: 25655 <2565550274@qq.com> Date: Wed, 5 Mar 2025 11:15:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=20=E4=B8=8B=E5=8D=95=E5=AE=A1?= =?UTF-8?q?=E6=89=B9=E9=9A=8F=E6=9C=BA=E8=B5=84=E6=96=99=E5=8F=8A=E9=85=8D?= =?UTF-8?q?=E4=BB=B6=E4=B8=8D=E9=9C=80=E8=A6=81=E8=B5=A0=E9=80=81=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yem/wm/im/placeexamine/op/AlaceexamineAuditOp.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/yem/wm/im/placeexamine/op/AlaceexamineAuditOp.java b/src/main/java/com/yem/wm/im/placeexamine/op/AlaceexamineAuditOp.java index f60f1352..d751475d 100644 --- a/src/main/java/com/yem/wm/im/placeexamine/op/AlaceexamineAuditOp.java +++ b/src/main/java/com/yem/wm/im/placeexamine/op/AlaceexamineAuditOp.java @@ -256,6 +256,8 @@ public class AlaceexamineAuditOp extends AbstractOperationServicePlugIn { BigDecimal yem_thisqty = BigDecimal.ZERO; for (int i = 0; i < yem_es_materialinfo_s.size(); i++) { DynamicObject yem_es_materialinfo = yem_es_materialinfo_s.get(i); + boolean yemIsgift = yem_es_materialinfo.getBoolean("yem_isgift"); + if (!yemIsgift) { long yem_sourceentryid = yem_es_materialinfo.getLong("yem_sourceentryid"); DynamicObject yem_plandetail_entry = (DynamicObject) yem_plandetail_entry_map.get(yem_sourceentryid); if (yem_plandetail_entry != null) { @@ -303,6 +305,7 @@ public class AlaceexamineAuditOp extends AbstractOperationServicePlugIn { yem_es_materialinfo_s.remove(i--); } } + } newbill.set("yem_thisqty", yem_thisqty); if ("Z".equals(key)) { //随机资料及配件工具包