|
@@ -411,7 +411,7 @@ open class PickOrderService( |
|
|
val inventoryLotLines = inventoryLotLineRepository.findAllByIdIn(saveSuggestedPickLots.mapNotNull { it.suggestedLotLine?.id }) |
|
|
val inventoryLotLines = inventoryLotLineRepository.findAllByIdIn(saveSuggestedPickLots.mapNotNull { it.suggestedLotLine?.id }) |
|
|
|
|
|
|
|
|
inventoryLotLines.forEach { line -> |
|
|
inventoryLotLines.forEach { line -> |
|
|
line.holdQty = line.holdQty?.plus(saveSuggestedPickLots.find { it.suggestedLotLine == line }?.qty ?: zero) |
|
|
|
|
|
|
|
|
line.holdQty = (line.holdQty ?: zero)?.plus(saveSuggestedPickLots.find { it.suggestedLotLine == line }?.qty ?: zero) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
inventoryLotLineRepository.saveAll(inventoryLotLines) |
|
|
inventoryLotLineRepository.saveAll(inventoryLotLines) |
|
|