|
|
@@ -382,6 +382,13 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
if(StringUtils.isEmpty(pi_statuscode)||(!StringUtils.isEmpty(pi_statuscode)&&!pi_statuscode.equals(Status.AUDITED.name()))){
|
|
|
throw new BizException(BizExceptionCode.BIZ_UNAUDITED);
|
|
|
};
|
|
|
+ if (ConfigsCache.current().enableB2B()) {
|
|
|
+ //明细已对账数量
|
|
|
+ int count = prodIODetailMapper.selectApCheckCountByFK(prodInOutDTO.getId());
|
|
|
+ if (count > 0) {
|
|
|
+ throw new BizException(BizExceptionCode.PURCHASE_INOUTORDER_HASCHECK);
|
|
|
+ }
|
|
|
+ }
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
map.put("inoutNo",pi_inoutno);
|
|
|
map.put("class", pi_class);
|