From 96b7df5c86df57e5b1bb92c377d5e41e0d4355b9 Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期一, 02 三月 2026 14:56:53 +0800
Subject: [PATCH] 1

---
 WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/NewOutboundOrderDetailService.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/NewOutboundOrderDetailService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/NewOutboundOrderDetailService.cs
index c5d66e5..8690286 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/NewOutboundOrderDetailService.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/NewOutboundOrderDetailService.cs
@@ -64,7 +64,7 @@
                 foreach (var stockInfoDetail in dt_StockInfoDetails)
                 {
                     dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.Id == stockInfoDetail.StockId && x.StockStatus == StockStatusEmun.鍏ュ簱瀹屾垚.ObjToInt());
-                    if (dt_StockInfo != null)
+                    if (dt_StockInfo != null && !PalletCodes.Any(x => x == dt_StockInfo.PalletCode))
                     {
                         PalletCodes.Add(dt_StockInfo.PalletCode);
                     }
@@ -127,7 +127,7 @@
 
                             decimal needQuantity = originalNeedQuantity - item.LockQuantity;
 
-                            item.LockQuantity += needQuantity - residueQuantity.NewNeendQuantity;
+                            //item.LockQuantity += needQuantity - residueQuantity.NewNeendQuantity;
 
                             decimal assignQuantity = needQuantity - residueQuantity.NewNeendQuantity;
 

--
Gitblit v1.9.3