package cn.iocoder.yudao.module.system.controller.admin.biz.vo.materialio.outbound;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

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

@Schema(description = "管理后台 - 物资出库单明细 Response VO")
@Data
public class MaterialOutboundOrderItemRespVO {

    private Long id;

    private Long orderId;

    private Long materialId;

    private String materialNumber;

    private String materialName;

    private String specification;

    private String materialUnit;

    @Schema(description = "关联入库明细ID")
    private Long refInboundItemId;

    @Schema(description = "关联入库单号")
    private String refInOrderNo;

    private BigDecimal quantity;

    private BigDecimal inUnitPrice;

    private BigDecimal saleUnitPrice;

    private BigDecimal amount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate produceDate;

    @Schema(description = "最新可出库数量")
    private BigDecimal latestAvailableQty;

    @Schema(description = "入库仓库ID")
    private Long refInStoreId;

    @Schema(description = "入库仓库名称")
    private String refInStoreName;
}

