修改VOLTA生成报文

optimize
jianghaiqing 12 months ago
parent 2838d4fd91
commit 6946f2196d

@ -95,7 +95,9 @@ namespace Myshipping.Application.EDI.VOLTA
}
else
{
r.WriteLine("<na1></na1>");
r.WriteLine("<na1>");
r.WriteLine("");
r.WriteLine("</na1>");
}
//发货地
r.WriteLine("<Poo>" + model.PlaceOfOrigin + "</Poo>");
@ -174,7 +176,7 @@ namespace Myshipping.Application.EDI.VOLTA
contaList.ForEach(ctn =>
{
//箱拼接格式:序号~箱号~铅封号~Custom Seal No~毛重~净重~尺码~重量单位~~件数~~~包装
txtBuilder.AppendLine($"{ctn.SNo}~{ctn.ContaNo}~{ctn.SealNo}~~{ctn.GWt.Value.ToString("0.###")}~{(ctn.NWt.HasValue ? ctn.NWt.Value.ToString("0.###") : "")}~{ctn.CBM.Value.ToString("0.###")}~{ctn.WTUnit}~{ctn.Qty.Value.ToString("#.###")}~~~{ctn.EdiPkgs}");
txtBuilder.AppendLine($"{ctn.SNo}~{ctn.ContaNo}~{ctn.SealNo}~~{ctn.GWt.Value.ToString("0.###")}~{(ctn.NWt.HasValue ? ctn.NWt.Value.ToString("0.###") : "")}~{ctn.CBM.Value.ToString("0.###")}~{ctn.WTUnit}~~{ctn.Qty.Value.ToString("#.###")}~~~{ctn.EdiPkgs}");
});
}

Loading…
Cancel
Save