取消校验

This commit is contained in:
lihao 2025-10-29 16:53:52 +08:00
parent adb53b5f12
commit 77d8b631b3
1 changed files with 11 additions and 11 deletions

View File

@ -24,17 +24,17 @@ public class XbPushTo45BeforeProcess implements IFilterRule<PurchaseInVO> {
return retvos;
}
for (PurchaseInVO vo : vos) {
if(vo.getHead().getPrimaryKey() == null){
for (PurchaseInBodyVO body:vo.getBodys()){
if(null!=body.getAttributeValue("vbdef33") && body.getNshouldnum().compareTo(new UFDouble(String.valueOf(body.getAttributeValue("vbdef33"))))>0){
try {
throw new BusinessException("入库数量大于最终需求数量不能生成采购入库!");
} catch (BusinessException e) {
throw new RuntimeException(e);
}
}
}
}
// if(vo.getHead().getPrimaryKey() == null){
// for (PurchaseInBodyVO body:vo.getBodys()){
// if(null!=body.getAttributeValue("vbdef33") && body.getNshouldnum().compareTo(new UFDouble(String.valueOf(body.getAttributeValue("vbdef33"))))>0){
// try {
// throw new BusinessException("入库数量大于最终需求数量不能生成采购入库!");
// } catch (BusinessException e) {
// throw new RuntimeException(e);
// }
// }
// }
// }
}
return retvos;