From 5aefbd30f18cc64d50b9bbadbacae63902ecac62 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Mon, 15 May 2023 16:29:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ONE=20EDI=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8F=90=E5=8D=95=E4=BB=BD=E6=95=B0=E5=BF=85=E5=A1=AB=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) 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) {