md
This commit is contained in:
parent
63f4451fba
commit
c530466643
@ -72,6 +72,9 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
|
||||
@Autowired
|
||||
private EmisWaybillProblemInfoMapper emisWaybillProblemInfoMapper;
|
||||
|
||||
@Autowired
|
||||
private EmisSettleSubBillMapper emisSettleSubBillMapper;
|
||||
|
||||
|
||||
/**
|
||||
* 获取稽核数据
|
||||
@ -1786,6 +1789,18 @@ public class EmisTmsScanRecordServiceImpl extends EmisBaseService implements IEm
|
||||
return itemList;
|
||||
}
|
||||
|
||||
// 如果已被定制账单,面单删除等不允许做问题件
|
||||
EmisSettleSubBill emisSettleSubBill=emisSettleSubBillMapper.selectSettleSubBillBySubBillNo(mainBillCode);
|
||||
if("1".equals(emisSettleSubBill.getBlMerge())
|
||||
&& ( "151".equals(problemType) || "170".equals(problemType) || "173".equals(problemType) )
|
||||
){
|
||||
scanResultItem.setResult("fail");
|
||||
scanResultItem.setMessage("已定制账单,不允许登记,请联系财务从账单中剔除后再操作");
|
||||
scanResultItem.setErrorCode(EmisBizErrorType.BILL_LOCK.errorCode);
|
||||
itemList.add(scanResultItem);
|
||||
return itemList;
|
||||
}
|
||||
|
||||
EmisWaybillProblemInfo emisWaybillProblemInfo = new EmisWaybillProblemInfo();
|
||||
emisWaybillProblemInfo.setBillCode(scanBillCode);
|
||||
emisWaybillProblemInfo.setProblemType(Integer.valueOf(problemType));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user