| | |
| | | stockUninventoryDto.setQualitity(stockOutRecord.getStockOutNum()); |
| | | stockUninventoryMapper.updateAddStockUnInventory(stockUninventoryDto); |
| | | } |
| | | }else if ("3".equals(stockOutRecord.getType())){ |
| | | } |
| | | if ("13".equals(stockOutRecord.getRecordType())){ |
| | | // 此为 销售-发货出库 没有关联记录才能成功删除 |
| | | // 查询对应是否含有销售出货记录 |
| | | ShippingInfo byId = shippingInfoService.getById(stockOutRecord.getRecordId()); |
| | | Assert.notNull(byId, StrUtil.format("{}存在销售出货记录,无法删除!!!",stockOutRecord.getOutboundBatches())); |
| | | Assert.isNull(byId, StrUtil.format("{}存在销售出货记录,无法删除!!!",stockOutRecord.getOutboundBatches())); |
| | | |
| | | } |
| | | } |