Browse Source

更新版本客户退货

dev_DY_CC
赵新宇 6 months ago
parent
commit
ad49b0e15a
  1. 3
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/CustomerProductionReturnNotes/DTOs/CustomerProductionReturnNoteDetailDTO.cs
  2. 22
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs
  3. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAutoMapperProfile.cs
  4. 1
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs

3
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/CustomerProductionReturnNotes/DTOs/CustomerProductionReturnNoteDetailDTO.cs

@ -5,5 +5,6 @@ namespace Win_in.Sfs.Wms.Store.Application.Contracts;
/// </summary>
public class CustomerProductionReturnNoteDetailDTO : SfsStoreRecommendToDetailWithFromToDTOBase
{
public string CustomerCode { set; get; }
public string CustomerName { set; get; }
}

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

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
@ -52,6 +53,27 @@ public class CustomerProductionReturnNoteAppService :
_customerAppService = customerAppService;
}
[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;
}
/// <summary>
/// 新增实体
/// </summary>

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAutoMapperProfile.cs

@ -12,7 +12,7 @@ public partial class StoreApplicationAutoMapperProfile : Profile
CreateMap<CustomerProductionReturnNote, CustomerProductionReturnNoteDTO>()
.ReverseMap();
CreateMap<CustomerProductionReturnNoteDetail, CustomerProductionReturnNoteDetailDTO>();
CreateMap<CustomerProductionReturnNoteDetail, CustomerProductionReturnNoteDetailDTO>().Ignore(x=>x.CustomerCode).Ignore(x=>x.CustomerName);
CreateMap<CustomerProductionReturnNoteEditInput, CustomerProductionReturnNote>();

1
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs

@ -95,6 +95,7 @@ public class CustomerProductionReturnNoteEventHandler
transaction.Worker = CustomerProductionReturnNote.Worker;
transaction.DocNumber = CustomerProductionReturnNote.Number;
transaction.JobNumber = CustomerProductionReturnNote.JobNumber;
transaction.PackingCode = detail.HandledPackingCode;
transaction.Status = EnumInventoryStatus.OK;
transactions.Add(transaction);

Loading…
Cancel
Save