Browse Source

提交

Agv分支2024-11-19
赵新宇 4 months ago
parent
commit
c0fc02f345
  1. 4
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs

4
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs

@ -102,7 +102,7 @@ public class CustomerProductionReturnNoteAppService :
var parts= input.Details.Select(itm => itm.ItemCode).Distinct(); var parts= input.Details.Select(itm => itm.ItemCode).Distinct();
var custitmDetail = await _customerItemAppService.GetListByPartsAsync(parts.ToList()).ConfigureAwait(false); var custitmDetail = await _customerItemAppService.GetListByPartsAsync(parts.ToList()).ConfigureAwait(false);
#region 20241230修改 #region 20241230修改
//var query = from itm in custitmDetail //var query = from itm in custitmDetail
@ -123,7 +123,7 @@ public class CustomerProductionReturnNoteAppService :
var part= custitmDetail.FirstOrDefault(p => p.CustomerCode == entity.CustomerCode && p.ItemCode==itm.ItemCode); var part= custitmDetail.FirstOrDefault(p => p.CustomerCode == entity.CustomerCode && p.ItemCode==itm.ItemCode);
if (part == null) if (part == null)
{ {
throw new UserFriendlyException($"零件编号{itm.ItemCode}客户编码{entity.CustomerCode}在客户物关系表中不存在!"); throw new UserFriendlyException($"零件编号{itm.ItemCode}客户编码{entity.CustomerCode}在客户物关系表中不存在!");
} }
} }
#endregion #endregion

Loading…
Cancel
Save