diff --git a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs index 7f0c4d12..4d75a0dc 100644 --- a/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs +++ b/Myshipping.Application/Service/BookingTruck/BookingTruckService.cs @@ -509,7 +509,10 @@ namespace Myshipping.Application if(yardInfo != null) { if (string.IsNullOrWhiteSpace(model.YARDCONTRACT)) + { model.YARDCONTRACT = yardInfo.Chief?.Trim(); + } + if (string.IsNullOrWhiteSpace(model.YARDCONTRACTTEL)) model.YARDCONTRACTTEL = yardInfo.Tel?.Trim(); @@ -517,8 +520,8 @@ namespace Myshipping.Application } } - model.InYardContact = orderInfo.YARDCONTRACT; - model.InYardContractTel = orderInfo.YARDCONTRACTTEL; + model.InYardContact = model.YARDCONTRACT; + model.InYardContractTel = model.YARDCONTRACTTEL; if (orderInfo.KGS.HasValue) {