Browse Source

up

dev_DY_CC
赵新宇 6 months ago
parent
commit
fed5809509
  1. 9
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs

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

@ -54,20 +54,13 @@ public class CustomerProductionReturnNoteAppService :
{
var entity = ObjectMapper.Map<CustomerProductionReturnNoteEditInput, CustomerProductionReturnNote>(input);
var parts= input.Details.Select(itm => itm.ItemCode).Distinct();
var ls=await IsExistCustomerItemRelationShip(parts.ToList(),input.CustomerCode).ConfigureAwait(false);
if (ls.Count > 0)
{
throw new UserFriendlyException($"客户零件关系表中没有查到客户为{input.CustomerCode}零件为{string.Join(",", ls.ToArray())}的零件");
throw new UserFriendlyException($"客户零件关系表中没有查到客户为{input.CustomerCode}零件为{string.Join(",", ls.ToArray())}的零件");
}

Loading…
Cancel
Save