Showing
1 changed file
with
8 additions
and
6 deletions
| @@ -355,12 +355,14 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | @@ -355,12 +355,14 @@ public class BusinessDataHandlerServiceImpl implements BusinessDataHandlerServic | ||
| 355 | purchaseOrderLineService.updateQuantity(purchaseOrderRevokeLine.getPurchaseOrderLineId(), result); | 355 | purchaseOrderLineService.updateQuantity(purchaseOrderRevokeLine.getPurchaseOrderLineId(), result); |
| 356 | } | 356 | } |
| 357 | //新增订单明细 | 357 | //新增订单明细 |
| 358 | - QueryOrderDetailReportVo vo2 = new QueryOrderDetailReportVo(); | ||
| 359 | - vo2.setPurchaseOrderLineId(purchaseOrderRevokeLine.getPurchaseOrderLineId()); | ||
| 360 | - List<OrderDetailReport> detailReports = orderDetailReportService.query(vo2); | ||
| 361 | - if (CollectionUtils.isNotEmpty(detailReports)) { | ||
| 362 | - OrderDetailReport orderDetailReport = detailReports.get(0); | ||
| 363 | - createOrderDetailReport(purchaseOrderRevokeLine.getId(), revokeQuantity.negate(), orderDetailReport); | 358 | + if (purchaseOrderRevokeLine.getRevokeQuantity() != null) { |
| 359 | + QueryOrderDetailReportVo vo2 = new QueryOrderDetailReportVo(); | ||
| 360 | + vo2.setPurchaseOrderLineId(purchaseOrderRevokeLine.getPurchaseOrderLineId()); | ||
| 361 | + List<OrderDetailReport> detailReports = orderDetailReportService.query(vo2); | ||
| 362 | + if (CollectionUtils.isNotEmpty(detailReports)) { | ||
| 363 | + OrderDetailReport orderDetailReport = detailReports.get(0); | ||
| 364 | + createOrderDetailReport(purchaseOrderRevokeLine.getId(), revokeQuantity.negate(), orderDetailReport); | ||
| 365 | + } | ||
| 364 | } | 366 | } |
| 365 | } | 367 | } |
| 366 | //更新总数量 | 368 | //更新总数量 |