| | |
| | | logger.error("SAP Retrieve Interface Error-----下架指令接收失败" + sloc_no + "库存数量小于下架数量--" + vsolm); |
| | | continue; |
| | | } |
| | | // (库存数量-出库通知档数量) < 下架数量 |
| | | List<WaitPakOutBean> waitPakOutBeanList = waitPakOutService.queryWaitOutPak(locDetailBean.getLoc_no(), locDetailBean.getMatnr()); |
| | | if (waitPakOutBeanList.size() > 0) { |
| | | Double realAnfme = new Double(locDetailBean.getAnfme() - waitPakOutBeanList.get(0).getVsolm()); |
| | | if (realAnfme < vsolm) { |
| | | jsonRet.put("lgnum", job.get("lgnum").toString()); |
| | | jsonRet.put("tanum", job.get("tanum").toString().equals("")?0:Integer.parseInt(job.get("tanum").toString())); |
| | | jsonRet.put("tapos", job.get("tapos").toString().equals("")?0:Integer.parseInt(job.get("tapos").toString())); |
| | | jsonRet.put("zstatus", "E"); |
| | | jsonRet.put("message", "下架指令接收失败," + sloc_no + "库存数量小于下架数量--" + vsolm); |
| | | arrRet.add(jsonRet); |
| | | logger.error("SAP Retrieve Interface Error-----下架指令接收失败" + sloc_no + "库存数量小于下架数量--" + vsolm); |
| | | continue; |
| | | } |
| | | } |
| | | String nltyp=job.get("vlpla").toString(); |
| | | String dloc_no=job.get("nlpla").toString(); |
| | | if(nltyp.equals("A01") && dloc_no!=null && !dloc_no.equals("")) { |