This commit is contained in:
linfso 2024-10-15 08:00:24 +08:00
parent 24172bdc88
commit 15aaa54da5

View File

@ -2536,6 +2536,20 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
// 设定为客户下单
emisWaybillSave.setOrderType("0");
// 如果是孟加拉单子,把运单号变为 12位
if("0880".equals(emisWaybillSave.getReceiveCountry())){
if(emisWaybillSave.getBillCode().length()==14 && emisWaybillSave.getBillCode().startsWith("T7080")){
String str =emisWaybillSave.getBillCode();
String prefix=str.substring(0,6);
String other = str.substring(8);
String billCode=prefix+other;
emisWaybillSave.setBillCode(billCode);
}
}
// 公共计算部分
calcWayBillCommonInfoByOms(emisWaybillSave,true);