Commit fc0f8d6b by 江和松

盘点没有差异数量时不进行入库操作

parent 1a15e08b
......@@ -13,6 +13,7 @@ import com.baosight.hggp.util.*;
import com.baosight.hggp.util.contants.ACConstants;
import com.baosight.iplat4j.core.ei.EiConstant;
import com.baosight.iplat4j.core.ei.EiInfo;
import com.baosight.iplat4j.core.exception.PlatException;
import com.baosight.iplat4j.core.service.impl.ServiceEPBase;
import com.baosight.iplat4j.ed.util.SequenceGenerator;
......@@ -147,7 +148,7 @@ public class ServiceHGKC005A extends ServiceEPBase {
newKc005.setInventRecordId(dbKc010.getSpecId());
newKc005.setDeleteFlag(CommonConstant.YesNo.NO_0);
DaoUtils.insert(HGKC005.INSERT, newKc005);
// 修改库存数量
HGKCTools.updateStock(newKc005);
}
}
......
......@@ -561,7 +561,8 @@ public class HGKCTools {
public static void updateStock(HGKC005 hgKc005) {
if (hgKc005.getDiffAmount().compareTo(BigDecimal.ZERO) == 0) {
throw new PlatException("入库数量不能为空");
// throw new PlatException("入库数量不能为空");
return;
}
EiInfo inInfo = new EiInfo();
inInfo.set("companyCode", hgKc005.getCompanyCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment