From 7814aa99d932af5710454b77027e4a0d9b484812 Mon Sep 17 00:00:00 2001
From: pan <antony1029@163.com>
Date: 星期三, 03 十二月 2025 10:57:01 +0800
Subject: [PATCH] 提交

---
 项目代码/WMS无仓储版/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs |    9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs"
index eb43ee1..dc46b43 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS\346\227\240\344\273\223\345\202\250\347\211\210/WIDESEA_WMSServer/WIDESEA_BasicService/InvokeMESService.cs"
@@ -511,7 +511,7 @@
                         materialCode = detail.MaterielCode,
                         lineNo = detail.lineNo,
                         warehouseCode = detail.WarehouseCode,
-                        qty = 0,
+                        qty = detail.BarcodeQty,
                         currentDeliveryQty = 0,
                         unit = detail.BarcodeUnit,
                         barcodes = new List<WIDESEA_DTO.Outbound.BarcodesModel>()
@@ -544,8 +544,7 @@
                         else
                         {
                             barModel.qty = item.PickQuantity;
-                        }
-                        detailModel.qty += barModel.qty;
+                        }                 
                         detailModel.currentDeliveryQty += barModel.qty;
                         detailModel.barcodes.Add(barModel);
                     }
@@ -553,12 +552,12 @@
                     feedModel.details.Add(detailModel);
                 }
 
-                feedModel.details = feedModel.details.GroupBy(item => new { item.materialCode, item.lineNo, item.warehouseCode, item.unit }).Select(group => new FeedbackOutboundDetailsModel
+                feedModel.details = feedModel.details.GroupBy(item => new { item.materialCode, item.lineNo, item.warehouseCode, item.unit,item.qty  }).Select(group => new FeedbackOutboundDetailsModel
                 {
                     materialCode = group.Key.materialCode,
                     lineNo = group.Key.lineNo,
                     warehouseCode = group.Key.warehouseCode,
-                    qty = group.Sum(x => x.qty),
+                    qty = group.Key.qty,
                     currentDeliveryQty = group.Sum(x => x.currentDeliveryQty),
                     unit = group.Key.unit,
                     barcodes = group.SelectMany(x => x.barcodes.GroupBy(o => new { o.barcode, o.supplyCode, o.batchNo, o.unit }).Select(row => new WIDESEA_DTO.Outbound.BarcodesModel

--
Gitblit v1.9.3