From e9f11eec6cbb720dcb456edaf5af6db715b131e9 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期六, 11 一月 2025 17:38:53 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/MeiRuiAn/HuaiAn

---
 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService_Pick.cs |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService_Pick.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService_Pick.cs"
index e07116a..342a677 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService_Pick.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/OutStockLockInfoService_Pick.cs"
@@ -68,7 +68,7 @@
                         residueDetailList.Add(stockInfo.Details[i]);
                     }
                 }
-
+                stockInfo.StockStatus = StockStatusEmun.鎷i�夊畬鎴�.ObjToInt();
                 List<string> mCodes = stockInfo.Details.GroupBy(x => x.MaterielCode).Select(x => x.Key).ToList();
                 _unitOfWorkManage.BeginTran();
                 foreach (string code in mCodes)
@@ -79,7 +79,10 @@
                 {
                     x.OutboundQuantity = 0;
                 });
-
+                if (stockInfo.Details.Count > deleteDetailList.Count)
+                    _stockService.StockInfoService.Repository.UpdateData(stockInfo);
+                else
+                    _stockService.StockInfoService.Repository.DeleteAndMoveIntoHty(stockInfo, OperateTypeEnum.鑷姩瀹屾垚);
                 _stockService.StockInfoDetailService.Repository.DeleteAndMoveIntoHty(deleteDetailList, OperateTypeEnum.鑷姩瀹屾垚);
                 _stockService.StockInfoDetailService.Repository.UpdateData(updateDetailList);
                 //_stockService.StockInfoDetailService.Repository.DeleteData(deleteDetailList);

--
Gitblit v1.9.3