|
@@ -71,7 +71,7 @@ open class SuggestedPickLotService( |
|
|
val suggestedList: MutableList<SuggestedPickLot> = mutableListOf() |
|
|
val suggestedList: MutableList<SuggestedPickLot> = mutableListOf() |
|
|
val holdQtyMap: MutableMap<Long?, BigDecimal?> = request.holdQtyMap |
|
|
val holdQtyMap: MutableMap<Long?, BigDecimal?> = request.holdQtyMap |
|
|
|
|
|
|
|
|
// get current inventory lot line qty & grouped by item Id |
|
|
|
|
|
|
|
|
// get current inventory lot line qty & grouped by item id |
|
|
val availableInventoryLotLines = inventoryLotLineService |
|
|
val availableInventoryLotLines = inventoryLotLineService |
|
|
.allInventoryLotLinesByItemIdIn(itemIds) |
|
|
.allInventoryLotLinesByItemIdIn(itemIds) |
|
|
.filter { it.status == InventoryLotLineStatus.AVAILABLE.value } |
|
|
.filter { it.status == InventoryLotLineStatus.AVAILABLE.value } |
|
@@ -182,6 +182,6 @@ open class SuggestedPickLotService( |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
open fun saveAll(request: List<SuggestedPickLot>): List<SuggestedPickLot> { |
|
|
open fun saveAll(request: List<SuggestedPickLot>): List<SuggestedPickLot> { |
|
|
return suggestedPickLotRepository.saveAll(request) |
|
|
|
|
|
|
|
|
return suggestedPickLotRepository.saveAllAndFlush(request) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |