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

import java.math.BigDecimal
import java.time.LocalDate

data class HandleBadItemRequest(
    val inventoryLotLineId: Long,
    val qty: Double,
    val remarks: String? = null,
    val handler: Long? = null,
)

data class SearchStockIssueRecordRequest(
    val startDate: LocalDate? = null,
    val endDate: LocalDate? = null,
    val itemCode: String? = null,
    val itemName: String? = null,
    val lotNo: String? = null,
    val pageNum: Int = 0,
    val pageSize: Int = 20,
)

data class StockIssueHandleRecordResponse(
    val id: Long,
    val stockOutLineId: Long?,
    val stockOutId: Long?,
    /** Business ledger date (stock_ledger.date), not created timestamp. */
    val handledAt: LocalDate?,
    val itemId: Long?,
    val itemCode: String?,
    val itemName: String?,
    val lotNo: String?,
    val storeLocation: String?,
    val expiryDate: LocalDate?,
    val qty: BigDecimal,
    val uomDesc: String?,
    val handlerId: Long?,
    val handlerName: String?,
    val remarks: String?,
    val type: String?,
)
