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

import java.time.LocalDateTime
import com.fasterxml.jackson.annotation.JsonFormat
data class DoDetailResponse(
    val id: Long,
    val code: String,
    val supplierCode: String?,
    val shopCode: String?,
    val currencyCode: String?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val orderDate: LocalDateTime?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val estimatedArrivalDate: LocalDateTime?,
    @JsonFormat(pattern = "yyyy-MM-dd")
    val completeDate: LocalDateTime?,
    val status: String?,
    val deliveryOrderLines: List<DoDetailLineResponse>
)

data class DoDetailLineResponse(
    val id: Long,
    val itemNo: String?,
    val qty: java.math.BigDecimal?,
    val price: java.math.BigDecimal?,
    val status: String?,
    val itemName: String?,
    val uomCode: String?
)