From 34079fd15f85f6d661417dc06b1f2d10a282b9e5 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Thu, 16 Jan 2025 11:19:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E9=80=80=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...ustomerProductionReturnNoteEventHandler.cs | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs index ad2aa5cd4..babf76a2c 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/Transactions/CustomerProductionReturnNoteEventHandler.cs @@ -82,21 +82,22 @@ public class CustomerProductionReturnNoteEventHandler { var transaction = ObjectMapper.Map(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.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); }