| | |
| | | }else { |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_3); |
| | | } |
| | | log.warn("pla出库v1,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme); |
| | | plaService.updateById(pla); |
| | | SaasUtils.insertLog(1,locNo,pla.getBrand(),anfme,null,null, |
| | | pla.getBatch(),pla.getPackageNo(),pla.getOwner(),pla.getWorkshop(),null); |
| | |
| | | //更新订单明细 |
| | | Order order = orderService.selectByNo(orderNo); |
| | | OrderDetl orderDetl = orderDetlService.selectById(plaQty.getOrderDetlId()); |
| | | |
| | | if (orderDetl == null){ |
| | | throw new CoolException("订单明细不存在或者不匹配"); |
| | | } |
| | | orderDetl.setQty(orderDetl.getQty() + anfme); |
| | | orderDetlService.updateById(orderDetl); |
| | | |
| | |
| | | throw new CoolException("当前物料剩余库存不足"); |
| | | } |
| | | |
| | | |
| | | log.warn("无订单拣货出库,更新为待出库或则全部出库,pla:{},anfme:{}",pla,anfme); |
| | | pla.setWeightAnfme(pla.getWeightAnfme() - anfme); |
| | | if(pla.getWeightAnfme() > 0){ |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_3); |
| | |
| | | plaService.updateById(plaNew); |
| | | |
| | | plaOld.setStatus(GlobleParameter.PLA_STATUS_1); |
| | | plaOld.setQtyAnfme(plaOld.getQtyAnfme() - manPakOut.getCount()); |
| | | plaOld.setQtyAnfme(0.0); |
| | | |
| | | plaService.updateById(plaOld); |
| | | |