package com.ffii.fpsms.modules.bag.web.model
import java.time.LocalDate
import java.time.LocalDateTime
data class GetAllBagInfoResponse(
    val bagId: Long,
    val bagName: String,
    val bags: List<BagInfo>
)

data class BagInfo(
    val id: Long,
    val bagId: Long,
    val bagName: String,
    val lotId: Long,
    val lotNo: String,
    val stockOutLineId: Long,
    val code: String,
    val balanceQty: Int,

)
data class BagUsageRecordResponse(
    val id: Long,
    val bagId: Long,
    val bagLotLineId: Long,
    val jobId: Long,
    val jobOrderCode: String,
    val stockOutLineId: Long,
    val startQty: Int,
    val consumedQty: Int,
    val scrapQty: Int,
    val endQty: Int,
    val date: LocalDate,
    val time: LocalDateTime,
    val bagName: String?,
    val bagCode: String?,
    val lotNo: String?
)


data class BagSummaryResponse(
    val id: Long,          // bag.id
    val bagName: String?,
    val bagCode: String?,
    val takenBagBalance: Int?, // 如有
    val deleted: Boolean?
)

data class BagLotLineResponse(
    val id: Long,
    val bagId: Long,
    val lotNo: String?,
    val stockOutLineId: Long?,
    val startQty: Int?,
    val consumedQty: Int?,
    val scrapQty: Int?,
    val balanceQty: Int?,
    val firstUseDate: LocalDate?,
    val lastUseDate: LocalDate?
)

data class BagConsumptionResponse(
    val id: Long,
    val bagId: Long,
    val bagLotLineId: Long,
    val jobId: Long,
    val jobOrderCode: String?,
    val stockOutLineId: Long?,
    val startQty: Int?,
    val consumedQty: Int?,
    val scrapQty: Int?,
    val endQty: Int?,
    val date: LocalDate?,
    val time: LocalDateTime?
)