|
|
@@ -378,12 +378,7 @@ public class ProdInOutServiceImpl extends CommonBaseServiceImpl<ProdInOutMapper,
|
|
|
|
|
|
private void checkUpdateQty(String pu_code, String pi_class) {
|
|
|
int count = 0;
|
|
|
- if ("采购验收单".equals(pi_class)) {
|
|
|
- count = getMapper().checkQtyFromPurchase(pu_code);
|
|
|
- if (count>0){
|
|
|
- throw new BizException(500, "明细行数量超过来源采购单明细行数量");
|
|
|
- }
|
|
|
- } else if ("采购验退单".equals(pi_class)) {
|
|
|
+ if ("采购验退单".equals(pi_class)) {
|
|
|
count = getMapper().checkQtyFromProdIn(pu_code);
|
|
|
if (count>0){
|
|
|
throw new BizException(500, "明细行数量超过来源采购验收单明细行数量");
|