修正因为PDA做了拆分单据状态发生变化,而PC端的采购登记冲销时单据未刷新而导致的冲销错误

This commit is contained in:
彭枝刚 2024-12-30 09:59:02 +08:00
parent 3c864db6ea
commit f59b411284

View File

@ -65,6 +65,8 @@ public class PoOrderServiceImpl extends ServiceImpl<PoOrderMapper, PoOrder> impl
Document document = documentMapper.selectById(documentBo);
if (document == null) {
throw BusinessException.build("单据号" + documentNo + "不存在");
}else if(!Constant.DOCUMENT_STATUS_SUBMIT.equals(document.getState())){
throw BusinessException.build("单据" + documentNo + "状态已发生变化,请刷新页面");
}
document.setState("CANCEL");
document.setUpdateDate(LocalDateTime.now());