From b4d5ff70e2c589bc756a87ecce1d0c52e56d92ff Mon Sep 17 00:00:00 2001 From: leiqiaozhen Date: Wed, 19 Mar 2025 14:31:42 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E9=87=87=E8=B4=AD=E7=99=BB=E8=AE=B0)?= =?UTF-8?q?=EF=BC=9A=E5=8F=91=E9=80=81=E7=BB=99ERP=E6=89=A7=E8=A1=8CFSMM00?= =?UTF-8?q?8-2=E6=8E=A5=E5=8F=A3=E6=97=B6=EF=BC=8C=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E8=BE=85=E5=8A=A9=E6=95=B0=E9=87=8F=E5=BF=85=E5=A1=AB=E5=86=99?= =?UTF-8?q?=E6=A0=87=E8=AF=86=E4=B8=BAY=EF=BC=8C=E5=88=99=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=20ERFMG=20=E4=B8=BA=E8=BE=85=E5=8D=95=E4=BD=8D?= =?UTF-8?q?=E6=95=B0=E9=87=8F=EF=BC=8CERFME=20=E4=B8=BA=E8=BE=85=E5=8A=A9?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=EF=BC=9B=E5=90=A6=E5=88=99=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?ERFMG=20=E4=B8=BA=E4=B8=BB=E5=8D=95=E4=BD=8D=E6=95=B0=E9=87=8F?= =?UTF-8?q?=EF=BC=8CERFME=20=E4=B8=BA=E4=B8=BB=E5=8D=95=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/RegisterDocumentServiceImpl.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/int-core/src/main/java/com/foreverwin/iep/integration/service/impl/RegisterDocumentServiceImpl.java b/int-core/src/main/java/com/foreverwin/iep/integration/service/impl/RegisterDocumentServiceImpl.java index fe1a111..c9864d8 100644 --- a/int-core/src/main/java/com/foreverwin/iep/integration/service/impl/RegisterDocumentServiceImpl.java +++ b/int-core/src/main/java/com/foreverwin/iep/integration/service/impl/RegisterDocumentServiceImpl.java @@ -198,8 +198,14 @@ public class RegisterDocumentServiceImpl implements RegisterDocumentService { jsonObject.put("EBELP", detail.getExternalSeq()); // 采购凭证的项目编号 jsonObject.put("MENGE", detail.getApplicationsQuantity()); // 数量 jsonObject.put("MEINS", detail.getUnitOfMeasure()); // 基本计量单位 - jsonObject.put("ERFMG", detail.getApplicationsQuantity()); // 以录入项单位表示的数量 - jsonObject.put("ERFME", detail.getUnitOfMeasure()); // 录入单位 + // 判断如果辅助数量必填写标识为Y,则设置 ERFMG 为辅单位数量,ERFME 为辅助单位;否则设置ERFMG 为主单位数量,ERFME 为主单位 + if (!StringUtils.isEmpty(detail.getAuxiliaryQtyFlag()) && "Y".equalsIgnoreCase(detail.getAuxiliaryQtyFlag())) { + jsonObject.put("ERFMG", detail.getAuxiliaryOty()); // 以录入项单位表示的数量(即辅助数量) + jsonObject.put("ERFME", detail.getAuxiliaryUnit()); // 录入单位(即辅助单位) + } else { + jsonObject.put("ERFMG", detail.getApplicationsQuantity()); // 以录入项单位表示的数量(即本次到货数量即主单位数量) + jsonObject.put("ERFME", detail.getUnitOfMeasure()); // 录入单位(即主单位) + } jsonObject.put("MAT_KDAUF", ""); // 评估销售定单库存的销售定单号 jsonObject.put("MAT_KDPOS", ""); // 评估销售订单库存的销售订单项目 jsonObject.put("UMMAT", "");