diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 4269de08..30f04cfe 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -2605,10 +2605,12 @@ namespace Myshipping.Application foreach (var oldCtn in existsCtnList) { var newCtn = checkCtnDto.CtnInputs.First(c => c.Id == oldCtn.Id); - if (oldCtn.SEALNO != newCtn.SEALNO - || oldCtn.PKGS != newCtn.PKGS - || oldCtn.KGS != newCtn.KGS - || oldCtn.CBM != newCtn.CBM) + if ( + (!string.IsNullOrWhiteSpace(oldCtn.SEALNO) && string.IsNullOrWhiteSpace(newCtn.SEALNO)) + || (oldCtn.PKGS != 0 && newCtn.PKGS == 0) + || (oldCtn.KGS != 0 && newCtn.KGS == 0) + || (oldCtn.CBM != 0 && newCtn.CBM == 0) + ) { return true; }