|
@ -1,5 +1,6 @@ |
|
|
using System; |
|
|
using System; |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
|
|
|
using System.Linq; |
|
|
using System.Text.Json; |
|
|
using System.Text.Json; |
|
|
using System.Threading.Tasks; |
|
|
using System.Threading.Tasks; |
|
|
using Volo.Abp.ObjectMapping; |
|
|
using Volo.Abp.ObjectMapping; |
|
@ -59,9 +60,9 @@ public class ProductionReturnNoteConverter : IOutgoingConverter |
|
|
outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNote); |
|
|
outgoingToExternal.DestinationDataContent = JsonSerializer.Serialize(putawayNote); |
|
|
outgoingToExternalList.Add(outgoingToExternal); |
|
|
outgoingToExternalList.Add(outgoingToExternal); |
|
|
#endregion
|
|
|
#endregion
|
|
|
|
|
|
var sumDetails = wmsReceipt.Details.GroupBy(r => new { r.ItemCode, r.FromLocationErpCode, r.ToLocationErpCode }).Select(p => new ProductionReturnNoteDetailDTO { ItemCode = p.Key.ItemCode, FromLocationErpCode = p.Key.FromLocationErpCode, ToLocationErpCode = p.Key.ToLocationErpCode, Qty = p.Sum(x => x.Qty) }).ToList(); |
|
|
#region 明细
|
|
|
#region 明细
|
|
|
foreach (var detail in wmsReceipt.Details) |
|
|
foreach (var detail in sumDetails) |
|
|
{ |
|
|
{ |
|
|
var outgoingDetailToExternal = new OutgoingToExternal() |
|
|
var outgoingDetailToExternal = new OutgoingToExternal() |
|
|
{ |
|
|
{ |
|
|