Browse Source

修改客户退货

Agv分支2024-11-19
郑勃旭 4 months ago
parent
commit
62317d40f6
  1. 3
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/AgvJobs/AgvJobOutputService.cs
  2. 36
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs

3
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/AgvJobs/AgvJobOutputService.cs

@ -51,9 +51,6 @@ public class AgvJobOutputService : ApplicationService
) )
{ {
_logger = logger; _logger = logger;
_unitOfWorkManager = unitOfWorkManager; _unitOfWorkManager = unitOfWorkManager;
_httpClientFactory = httpClientFactory; _httpClientFactory = httpClientFactory;

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

@ -33,7 +33,7 @@ public class CustomerProductionReturnNoteAppService :
private readonly ICustomerItemAppService _customerItemAppService; private readonly ICustomerItemAppService _customerItemAppService;
private readonly ICustomerAppService _customerAppService; private readonly ICustomerAppService _customerAppService;
private readonly ICustomerItemRepository _customerItemRepository; //private readonly ICustomerItemRepository _customerItemRepository;
private readonly ISalePriceSheetAppService _salePriceSheetAppService; private readonly ISalePriceSheetAppService _salePriceSheetAppService;
public CustomerProductionReturnNoteAppService( public CustomerProductionReturnNoteAppService(
@ -41,17 +41,13 @@ public class CustomerProductionReturnNoteAppService :
, ICustomerProductionReturnNoteManager CustomerProductionReturnNoteManager , ICustomerProductionReturnNoteManager CustomerProductionReturnNoteManager
, ICustomerItemAppService customerItemAppService, , ICustomerItemAppService customerItemAppService,
ISalePriceSheetAppService salePriceSheetAppService, ISalePriceSheetAppService salePriceSheetAppService,
ICustomerAppService customerAppService, ICustomerAppService customerAppService
ICustomerItemRepository customerItemRepository // ICustomerItemRepository customerItemRepository
) : base(repository) ) : base(repository)
{ {
//_customerItemRepository = customerItemRepository;
_customerItemRepository = customerItemRepository;
_customerItemAppService = customerItemAppService; _customerItemAppService = customerItemAppService;
_salePriceSheetAppService = salePriceSheetAppService; _salePriceSheetAppService = salePriceSheetAppService;
_CustomerProductionReturnNoteManager = CustomerProductionReturnNoteManager; _CustomerProductionReturnNoteManager = CustomerProductionReturnNoteManager;
_customerAppService = customerAppService; _customerAppService = customerAppService;
} }
@ -59,19 +55,12 @@ public class CustomerProductionReturnNoteAppService :
[HttpGet("{id}")] [HttpGet("{id}")]
public override async Task<CustomerProductionReturnNoteDTO> GetAsync(Guid id) public override async Task<CustomerProductionReturnNoteDTO> GetAsync(Guid id)
{ {
var entity=await base.GetAsync(id).ConfigureAwait(false); var entity=await base.GetAsync(id).ConfigureAwait(false);
foreach (var itm in entity.Details) foreach (var itm in entity.Details)
{ {
itm.CustomerCode=entity.CustomerCode; itm.CustomerCode=entity.CustomerCode;
itm.CustomerName=entity.CustomerName; itm.CustomerName=entity.CustomerName;
} }
return entity; return entity;
} }
@ -161,13 +150,16 @@ public class CustomerProductionReturnNoteAppService :
} }
foreach (var itm in entity.Details) foreach (var itm in entity.Details)
{ {
itm.FromLocationCode = ""; itm.FromLocationCode = string.Empty;
itm.FromLocationArea = ""; itm.FromStatus = EnumInventoryStatus.OK;
itm.FromLocationErpCode = ""; itm.ToStatus=EnumInventoryStatus.OK;
itm.FromWarehouseCode = ""; itm.FromLocationArea = string.Empty;
itm.FromLocationGroup = ""; itm.FromLocationErpCode= string.Empty;
itm.ToContainerCode =string.IsNullOrEmpty(itm.ToContainerCode)? "OK": itm.ToContainerCode; itm.FromWarehouseCode = string.Empty;
itm.ToWarehouseCode= string.IsNullOrEmpty(itm.ToWarehouseCode)? "OK": itm.ToContainerCode; itm.FromLocationGroup = string.Empty;
itm.FromContainerCode = string.Empty;
itm.ToContainerCode =string.IsNullOrEmpty(itm.ToContainerCode)? "": itm.ToContainerCode;
itm.ToWarehouseCode= string.IsNullOrEmpty(itm.ToWarehouseCode)? "": itm.ToContainerCode;
} }
await _CustomerProductionReturnNoteManager.CreateAsync(entity).ConfigureAwait(false); await _CustomerProductionReturnNoteManager.CreateAsync(entity).ConfigureAwait(false);

Loading…
Cancel
Save