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

import com.ffii.fpsms.modules.deliveryOrder.entity.DeliveryOrderLine
import com.ffii.fpsms.modules.deliveryOrder.enums.DeliveryOrderStatus
import com.ffii.fpsms.modules.deliveryOrder.enums.DeliveryOrderStatusConverter
import jakarta.persistence.Convert
import org.springframework.beans.factory.annotation.Value
import java.time.LocalDateTime

interface DeliveryOrderInfo{
    val id: Long
    val code: String
    val orderDate: LocalDateTime?

    @get:Value("#{target.status.value}")
    val status: String?

    @get:Value("#{target.shop?.name}")
    val shopName: String?

    val deliveryOrderLines: List<DeliveryOrderLineInfo>
}

