diff --git a/Myshipping.Application/EDI/PILEdiHelper.cs b/Myshipping.Application/EDI/PILEdiHelper.cs
index b7c0a7cc..178c0ff9 100644
--- a/Myshipping.Application/EDI/PILEdiHelper.cs
+++ b/Myshipping.Application/EDI/PILEdiHelper.cs
@@ -453,6 +453,10 @@ namespace Myshipping.Application.EDI.PIL
if (bill.CARGOID == null || bill.CARGOID == "")
{ error = error + "
提单号:" + bill.MBLNO + "货物标示不能为空"; }
+ //2023-05-19 增加运费协议号必填
+ if (string.IsNullOrWhiteSpace(bill.CONTRACTNO))
+ { error = error + "
提单号:" + bill.MBLNO + "运费协议号不能为空"; }
+
if (bill.CARGOID == "D")
{
if (bill.DCLASS == null || bill.DCLASS == "")
@@ -1067,7 +1071,7 @@ namespace Myshipping.Application.EDI.PIL
}
else
{
- if (contractno == "")
+ if (string.IsNullOrWhiteSpace(contractno))
{
tempstr += GetSpaceStr("DUM000001", 11);//3 //Deciding Party Code//O//X(10)//6 //15 //webcsm Partner Code//mandtory (DUM000001),填RFA;美国线的S/C或者TAA填写在record 74,美国线留空
}