Browse Source

修改客户退货

dev_DY_CC
郑勃旭 4 months ago
parent
commit
4312b9431a
  1. 18
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs
  2. 21
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs

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

@ -137,16 +137,18 @@ public class CustomerProductionReturnNoteAppService :
}
foreach (var itm in entity.Details)
{
itm.FromLocationCode = "OK";
itm.FromLocationCode = "";
itm.FromLocationArea = "";
itm.FromLocationErpCode = "";
itm.FromWarehouseCode = "";
itm.FromLocationGroup = "";
itm.FromStatus = EnumInventoryStatus.OK;
itm.ToStatus=EnumInventoryStatus.OK;
itm.FromLocationArea = "OK";
itm.FromLocationErpCode= "OK";
itm.FromWarehouseCode = "OK";
itm.FromLocationGroup = "OK";
itm.FromContainerCode = "OK";
itm.ToContainerCode =string.IsNullOrEmpty(itm.ToContainerCode)? "OK": itm.ToContainerCode;
itm.ToWarehouseCode= string.IsNullOrEmpty(itm.ToWarehouseCode)? "OK": itm.ToContainerCode;
itm.FromContainerCode = itm.ToContainerCode;
itm.ToContainerCode = itm.ToContainerCode;
itm.ToWarehouseCode = itm.ToWarehouseCode;
}
await _CustomerProductionReturnNoteManager.CreateAsync(entity).ConfigureAwait(false);

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

@ -82,21 +82,22 @@ public class CustomerProductionReturnNoteEventHandler
{
var transaction = ObjectMapper.Map<CustomerProductionReturnNoteDetail, TransactionEditInput>(detail);
transaction.PackingCode = (!string.IsNullOrEmpty(transaction.PackingCode) )? transaction.PackingCode :"" ;
transaction.ContainerCode = (!string.IsNullOrEmpty(transaction.ContainerCode) )? transaction.ContainerCode :"" ;
transaction.Lot = (!string.IsNullOrEmpty(transaction.Lot) )? transaction.Lot :"" ;
transaction.LocationArea = (!string.IsNullOrEmpty(transaction.LocationArea) )? transaction.LocationArea :"NONE" ;
transaction.LocationGroup = (!string.IsNullOrEmpty(transaction.LocationGroup) )? transaction.LocationGroup :"NONE" ;
transaction.LocationErpCode = (!string.IsNullOrEmpty(transaction.LocationErpCode))? transaction.LocationErpCode :"NONE" ;
transaction.WarehouseCode = (!string.IsNullOrEmpty(transaction.WarehouseCode)) ? transaction.WarehouseCode : "NONE";
transaction.LocationErpCode = (!string.IsNullOrEmpty(transaction.LocationErpCode)) ? transaction.LocationErpCode : "NONE";
transaction.PackingCode = detail.ToPackingCode;
transaction.ContainerCode = detail.ToContainerCode;
transaction.Lot = detail.ToLot;
transaction.Status = EnumInventoryStatus.OK;
transaction.LocationArea = detail.ToLocationArea;
transaction.LocationGroup = detail.ToLocationGroup;
transaction.LocationErpCode = detail.ToLocationErpCode;
transaction.WarehouseCode = detail.ToWarehouseCode;
transaction.LocationCode = detail.ToLocationCode;
transaction.TransType = TransType;
transaction.TransInOut = TransInOut;
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