md
This commit is contained in:
parent
be83267532
commit
61a07f853e
@ -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())) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user