|
@@ -1,6 +1,7 @@ |
|
|
package com.ffii.fpsms.modules.pickOrder.service |
|
|
package com.ffii.fpsms.modules.pickOrder.service |
|
|
|
|
|
|
|
|
import com.ffii.core.response.RecordsRes |
|
|
import com.ffii.core.response.RecordsRes |
|
|
|
|
|
import com.ffii.fpsms.modules.master.web.models.MessageResponse |
|
|
import com.ffii.fpsms.modules.pickOrder.entity.PickOrder |
|
|
import com.ffii.fpsms.modules.pickOrder.entity.PickOrder |
|
|
import com.ffii.fpsms.modules.pickOrder.entity.PickOrderRepository |
|
|
import com.ffii.fpsms.modules.pickOrder.entity.PickOrderRepository |
|
|
import com.ffii.fpsms.modules.pickOrder.entity.projection.PickOrderInfo |
|
|
import com.ffii.fpsms.modules.pickOrder.entity.projection.PickOrderInfo |
|
@@ -112,7 +113,7 @@ open class PickOrderService( |
|
|
|
|
|
|
|
|
// pick orders |
|
|
// pick orders |
|
|
val pos = pickOrderRepository.findAllByConsoCode(consoCode) |
|
|
val pos = pickOrderRepository.findAllByConsoCode(consoCode) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Suggestions for Pick Order |
|
|
// Suggestions for Pick Order |
|
|
val suggestions = suggestedPickLotService.suggestionForPickOrders(SuggestedPickLotForPoRequest(pickOrders = pos)) |
|
|
val suggestions = suggestedPickLotService.suggestionForPickOrders(SuggestedPickLotForPoRequest(pickOrders = pos)) |
|
|
val suggestedList = suggestions.suggestedList |
|
|
val suggestedList = suggestions.suggestedList |
|
@@ -147,6 +148,7 @@ open class PickOrderService( |
|
|
// Mapping: InventoryLotLine -> InventoryLotLineInConso |
|
|
// Mapping: InventoryLotLine -> InventoryLotLineInConso |
|
|
val finalInventoryLotLine = InventoryLotLineInConso( |
|
|
val finalInventoryLotLine = InventoryLotLineInConso( |
|
|
id = inventoryLotLine?.id, |
|
|
id = inventoryLotLine?.id, |
|
|
|
|
|
lotNo = inventoryLotLine?.inventoryLot?.lotNo, |
|
|
inQty = inventoryLotLine?.inQty, |
|
|
inQty = inventoryLotLine?.inQty, |
|
|
outQty = inventoryLotLine?.outQty, |
|
|
outQty = inventoryLotLine?.outQty, |
|
|
holdQty = inventoryLotLine?.holdQty, |
|
|
holdQty = inventoryLotLine?.holdQty, |
|
@@ -233,7 +235,11 @@ open class PickOrderService( |
|
|
return response |
|
|
return response |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
open fun releaseConsoPickOrder(request: ReleaseConsoPickOrderRequest) { |
|
|
|
|
|
val pos = pickOrderRepository.findAllByConsoCode(request.consoCode) |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
// open fun releaseConsoPickOrder(request: ReleaseConsoPickOrderRequest): MessageResponse { |
|
|
|
|
|
// val pos = pickOrderRepository.findAllByConsoCode(request.consoCode) |
|
|
|
|
|
// val suggestedPickLots = suggestedPickLotService.convertRequestsToEntities(request.suggestedPickLots) |
|
|
|
|
|
// |
|
|
|
|
|
// suggestedPickLotService.saveAll(suggestedPickLots) |
|
|
|
|
|
// // TODO: Add Response |
|
|
|
|
|
// } |
|
|
} |
|
|
} |