取消校验
This commit is contained in:
parent
adb53b5f12
commit
77d8b631b3
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue