From f54b7815d8451f362554e3d2d09b4991ce13d4ff Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期三, 12 十一月 2025 09:01:16 +0800
Subject: [PATCH] 前端优化,PDA更新,分配库存优化

---
 项目代码/WMS/WMSServices/WIDESEA_OutboundService/OutMESOrderService.cs |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_OutboundService/OutMESOrderService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_OutboundService/OutMESOrderService.cs"
index fccd31d..c420a2a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_OutboundService/OutMESOrderService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_OutboundService/OutMESOrderService.cs"
@@ -186,7 +186,7 @@
 
                     decimal orderDetailNeedQuantity = item.ReqQuantity - detailAssignQuantity;
 
-                    decimal useStockLength = autoAssignStocks[0].StockLength - autoAssignStocks[0].StockOutLength;
+                    decimal useStockLength = autoAssignStocks[0].StockLength;
                     if (orderDetailNeedQuantity > useStockLength)
                     {
 
@@ -195,7 +195,6 @@
                         outStockLockInfos.Add(outStockLockInfo);
                         item.AssignTotalUsage += useStockLength;
                         autoAssignStocks.Remove(autoAssignStocks[0]);
-
                     }
                     else
                     {
@@ -203,11 +202,7 @@
                         Dt_OutStockLockInfo outStockLockInfo = _outStockLockInfoService.GetOutStockLockInfo(item, autoAssignStocks[0], orderDetailNeedQuantity);
                         outStockLockInfos.Add(outStockLockInfo);
                         item.AssignTotalUsage = orderQuantity;
-                        autoAssignStocks[0].StockOutLength += orderDetailNeedQuantity;
-                        if (autoAssignStocks[0].StockOutLength == autoAssignStocks[0].StockLength)
-                        {
-                            autoAssignStocks.Remove(autoAssignStocks[0]);
-                        }
+                        autoAssignStocks.Remove(autoAssignStocks[0]);
                         assignStop = false;
                     }
                 }

--
Gitblit v1.9.3