package com.ffii.fpsms.modules.stock.web.model

import java.math.BigDecimal

data class LotLineInfo(
    val inventoryLotLineId: Long,
    val itemId: Long,
    val itemNo: String,
    val itemName: String,
    val lotNo: String,
    val remainingQty: BigDecimal,
    val uom: String
)
data class UpdateInventoryLotLineStatusRequest(
    val inventoryLotLineId: Long,
    val status: String
)
data class QrCodeAnalysisRequest(
    val itemId: Long,
    val stockInLineId: Long,
)

data class ScannedLotInfo(
    val stockInLineId: Long,
    val lotNo: String,
    val inventoryLotLineId: Long,
    val warehouseCode: String? = null,
    val warehouseName: String? = null
)

data class SameItemLotInfo(
    val lotNo: String,
    val inventoryLotLineId: Long,
    val stockInLineId: Long? = null,
    val availableQty: BigDecimal,
    val uom: String,
    val warehouseCode: String? = null,
    val warehouseName: String? = null
)

data class QrCodeAnalysisResponse(
    val itemId: Long,
    val itemCode: String,
    val itemName: String,
    val scanned: ScannedLotInfo,
    val sameItemLots: List<SameItemLotInfo>
)

data class WorkbenchItemLotsResponse(
    val itemId: Long,
    val itemCode: String,
    val itemName: String,
    val sameItemLots: List<SameItemLotInfo>
)