| | |
| | | if (complete) { |
| | | for (OrderDetl orderDetl : orderDetls) { |
| | | //生成单据和入库通知档时,给batch为空的明细赋了一个 ="", 现在改为null,回传用 |
| | | if (orderDetl.getBatch().equals("")){ |
| | | if (!Cools.isEmpty(orderDetl.getBatch()) && orderDetl.getBatch().equals("")){ |
| | | orderDetl.setBatch(null); |
| | | orderDetlService.updateById(orderDetl); |
| | | } |
| | |
| | | throw new CoolException("修改单据状态失败"); |
| | | } |
| | | for (DetlDto detlDto : detlDtos) { |
| | | if (detlDto.getMatnr().substring(0,1).equals("B")) continue; |
| | | // 修改订单明细数量 |
| | | if (!orderDetlService.increase(order.getId(), detlDto.getMatnr(), detlDto.getBatch(), detlDto.getAnfme())) { |
| | | throw new CoolException("修改单据明细数量失败"); |