From cff16125b0d2e42308240146f43514f0b3b8111f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A3=E5=9C=A3=E5=8D=8E?= <752718920@qq.com> Date: Thu, 19 May 2022 00:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=8D=95=E6=8D=AE=E6=98=8E?= =?UTF-8?q?=E7=BB=86=E7=9A=84=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../erp/service/depotItem/DepotItemService.java | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java b/jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java index fdbd8bde..1f551e7d 100644 --- a/jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java +++ b/jshERP-boot/src/main/java/com/jsh/erp/service/depotItem/DepotItemService.java @@ -847,17 +847,11 @@ public class DepotItemService { goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER; } } else { - if(BusinessConstants.PURCHASE_STATUS_SKIPING.equals(depotHead.getPurchaseStatus())) { - if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) { - goToType = BusinessConstants.SUB_TYPE_PURCHASE_ORDER; - } - } else { - if(BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())) { - goToType = BusinessConstants.SUB_TYPE_PURCHASE; - } - if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) { - goToType = BusinessConstants.SUB_TYPE_SALES; - } + if(BusinessConstants.SUB_TYPE_PURCHASE_ORDER.equals(depotHead.getSubType())) { + goToType = BusinessConstants.SUB_TYPE_PURCHASE; + } + if(BusinessConstants.SUB_TYPE_SALES_ORDER.equals(depotHead.getSubType())) { + goToType = BusinessConstants.SUB_TYPE_SALES; } } BigDecimal count = depotItemMapperEx.getFinishNumber(meId, linkNumber, goToType);