package com.ffii.fpsms.modules.deliveryOrder.web.models

import com.fasterxml.jackson.annotation.JsonFormat
import java.time.LocalDate
import java.time.LocalDateTime
import java.time.LocalTime

data class WorkbenchTicketReleaseTableResponse(
    val deliveryOrderPickOrderId: Long,
    val storeId: String?,
    val ticketNo: String?,
    val loadingSequence: Int?,
    val ticketStatus: String?,
    @JsonFormat(pattern = "HH:mm")
    val truckDepartureTime: LocalTime?,
    val handledBy: Long?,
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    val ticketReleaseTime: LocalDateTime?,
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    val ticketCompleteDateTime: LocalDateTime?,
    val truckLanceCode: String?,
    val shopCode: String?,
    val shopName: String?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val requiredDeliveryDate: LocalDate?,
    val handlerName: String?,
    val numberOfFGItems: Int = 0,
    val isActiveWorkbenchTicket: Boolean = false,
)
