cjy 2 months ago
commit b9dedccdc4

@ -284,7 +284,7 @@ public class SeaExportReq
public DateTime? BLIssueSatus { get; set; } public DateTime? BLIssueSatus { get; set; }
/// <summary> /// <summary>
/// 地点Id /// 付地点Id
/// </summary> /// </summary>
public long PrepareAtId { get; set; } public long PrepareAtId { get; set; }
@ -294,7 +294,7 @@ public class SeaExportReq
public string PrepareAt { get; set; } public string PrepareAt { get; set; }
/// <summary> /// <summary>
/// 付地点 /// 地点
/// </summary> /// </summary>
public string PayableAt { get; set; } public string PayableAt { get; set; }
@ -1022,7 +1022,7 @@ public class SeaExportReq
/// </summary> /// </summary>
public long ThirdPayAtId { get; set; } public long ThirdPayAtId { get; set; }
/// <summary> /// <summary>
/// 付地点Id /// 地点Id
/// </summary> /// </summary>
public long PayableAtId { get; set; } public long PayableAtId { get; set; }

@ -642,10 +642,10 @@ namespace DS.WMS.Core.Op.EDI
//跟韩工确认增加判断 //跟韩工确认增加判断
if (!string.IsNullOrWhiteSpace(headData.BLFRT) && headData.BLFRT.IndexOf("PREPAID") >= 0) if (!string.IsNullOrWhiteSpace(headData.BLFRT) && headData.BLFRT.IndexOf("PREPAID") >= 0)
{ {
if (string.IsNullOrWhiteSpace(headData.PREPARDAT)) //if (string.IsNullOrWhiteSpace(headData.PREPARDAT))
{ //{
error = error + "<br />提单号:" + headData.MBLNO + " 付费方式是预付,预付地点不能为空"; // error = error + "<br />提单号:" + headData.MBLNO + " 付费方式是预付,预付地点不能为空";
} //}
if (!string.IsNullOrWhiteSpace(headData.PAYABLEAT)) if (!string.IsNullOrWhiteSpace(headData.PAYABLEAT))
{ {
@ -654,10 +654,10 @@ namespace DS.WMS.Core.Op.EDI
} }
else if (!string.IsNullOrWhiteSpace(headData.BLFRT) && headData.BLFRT.IndexOf("COLLECT") >= 0) else if (!string.IsNullOrWhiteSpace(headData.BLFRT) && headData.BLFRT.IndexOf("COLLECT") >= 0)
{ {
if (string.IsNullOrWhiteSpace(headData.PAYABLEAT)) //if (string.IsNullOrWhiteSpace(headData.PAYABLEAT))
{ //{
error = error + "<br />提单号:" + headData.MBLNO + " 付费方式是到付,到付地点不能为空"; // error = error + "<br />提单号:" + headData.MBLNO + " 付费方式是到付,到付地点不能为空";
} //}
if (!string.IsNullOrWhiteSpace(headData.PREPARDAT)) if (!string.IsNullOrWhiteSpace(headData.PREPARDAT))
{ {

@ -1279,6 +1279,7 @@ namespace DS.WMS.Core.Op.Method
} }
#region 到付地点 #region 到付地点
//到付地点 //到付地点
if (order.PayableAtId > 0) if (order.PayableAtId > 0)
@ -1290,6 +1291,16 @@ namespace DS.WMS.Core.Op.Method
} }
#endregion #endregion
//如果处理的是到付,需要把预付地点来对应到付地点
if (!string.IsNullOrWhiteSpace(order.MBLFrt) && order.MBLFrt.IndexOf("COLLECT") >= 0)
{
primaryModel.PAYABLEATID = primaryModel.PREPARDATID;
primaryModel.PAYABLEAT = order.PrepareAt;
primaryModel.PREPARDATID = string.Empty;
primaryModel.PREPARDAT = string.Empty;
}
//起运港是CNTAO并且船公司是太平需要判断场站EDI //起运港是CNTAO并且船公司是太平需要判断场站EDI
if (ediRouteEnum == EDIRouteEnum.WY) if (ediRouteEnum == EDIRouteEnum.WY)
{ {

Loading…
Cancel
Save