This commit is contained in:
linfso 2025-01-14 11:15:17 +08:00
parent be83267532
commit 61a07f853e

View File

@ -2843,8 +2843,10 @@ public class EmisWaybillServiceImpl extends EmisBaseService implements IEmisWayb
private void addNewWaybill(EmisWaybill emisWaybillSave) throws EmisBizError {
// 获取运单号,判断是不是子单已存在
getMainBillCode()
boolean isExists = checkWaybillIsExists(emisWaybillSave.getBillCode());
if(isExists){
throw new EmisBizError(EmisBizErrorType.FAIL, "单号与子单号相同,请换单号");
}
// 子单号做扣减
if ("1".equals(emisWaybillSave.getBlGenSubbill())) {