修正因为PDA做了拆分单据状态发生变化,而PC端的采购登记冲销时单据未刷新而导致的冲销错误
This commit is contained in:
parent
3c864db6ea
commit
f59b411284
@ -65,6 +65,8 @@ public class PoOrderServiceImpl extends ServiceImpl<PoOrderMapper, PoOrder> impl
|
|||||||
Document document = documentMapper.selectById(documentBo);
|
Document document = documentMapper.selectById(documentBo);
|
||||||
if (document == null) {
|
if (document == null) {
|
||||||
throw BusinessException.build("单据号" + documentNo + "不存在");
|
throw BusinessException.build("单据号" + documentNo + "不存在");
|
||||||
|
}else if(!Constant.DOCUMENT_STATUS_SUBMIT.equals(document.getState())){
|
||||||
|
throw BusinessException.build("单据" + documentNo + "状态已发生变化,请刷新页面");
|
||||||
}
|
}
|
||||||
document.setState("CANCEL");
|
document.setState("CANCEL");
|
||||||
document.setUpdateDate(LocalDateTime.now());
|
document.setUpdateDate(LocalDateTime.now());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user