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

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 MaterialIoOrderItemRespVO {

    private Long id;

    private Long orderId;

    private Long materialId;

    private String materialNumber;

    private String materialName;

    private String materialUnit;

    @Schema(description = "关联入库单ID")
    private Long refInOrderId;

    private String refInOrderNo;

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

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

    private Integer quantity;

    private BigDecimal inUnitPrice;

    private BigDecimal saleUnitPrice;

    private BigDecimal amount;

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

    private Integer beforeStock;

    private Integer afterStock;

    private Integer batchBeforeAvailable;

    private Integer batchAfterAvailable;

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

    @Schema(description = "供应商ID")
    private Long supplierId;

    @Schema(description = "供应商名称")
    private String supplierName;
}
