diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 736cc621..ad2ce561 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -3789,6 +3789,14 @@ namespace Myshipping.Application EDIRouteEnum ediRouteEnum = GetEDIRoute(order.CARRIERID); + if (ediRouteEnum == EDIRouteEnum.YT) + { + if (string.IsNullOrWhiteSpace(order.NOBILL)) + { + throw Oops.Bah("当前船公司{ca} EDI={name} 提单份数必填", order.CARRIERID, ediRouteEnum.ToString()); + } + } + //部分船公司EDI需要填写操作英文名称,这里预先预警,其他船公司如果也需要可以再此追加 if (ediRouteEnum == EDIRouteEnum.TSL) {