Browse Source

更新版本

Agv分支2024-11-19
赵新宇 4 months ago
parent
commit
ca0d4e1090
  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

@ -59,19 +59,12 @@ public class CustomerProductionReturnNoteAppService :
[HttpGet("{id}")]
public override async Task<CustomerProductionReturnNoteDTO> GetAsync(Guid id)
{
var entity=await base.GetAsync(id).ConfigureAwait(false);
foreach (var itm in entity.Details)
{
itm.CustomerCode=entity.CustomerCode;
itm.CustomerName=entity.CustomerName;
}
return entity;
}
@ -120,7 +113,7 @@ public class CustomerProductionReturnNoteAppService :
foreach (var itm in input.Details)
{
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)
{
throw new UserFriendlyException($"零件编号{itm.ItemCode}客户编码{entity.CustomerCode}在客户物品关系表中不存在!");

Loading…
Cancel
Save