This commit is contained in:
linfso 2024-08-25 01:27:42 +08:00
parent 6d0f3816b1
commit d1c069fb9d

View File

@ -375,6 +375,8 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
emisWaybillSave.setBillCode(waybillNo);
}
addNewWaybillByApi(emisWaybillSave);
return 1;
@ -2533,6 +2535,20 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
*/
private void addNewWaybillByApi(EmisWaybill emisWaybillSave) throws EmisBizError {
// 如果是孟加拉单子,把运单号变为 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);
}
}
// 公共计算部分
calcWayBillCommonInfoByApi(emisWaybillSave,true);