package cn.iocoder.yudao.module.mes.controller.admin.saleorder.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - ERP 销售订单项 Response VO")
@Data
@ExcelIgnoreUnannotated
public class SaleOrderItemsRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "2352")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "销售订单编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "5688")
    @ExcelProperty("销售订单编号")
    private Long orderId;

    @Schema(description = "产品编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "10536")
    @ExcelProperty("产品编号")
    private Long productId;
    @Schema(description = "产品", requiredMode = Schema.RequiredMode.REQUIRED, example = "10536")
    @ExcelProperty("产品")
    private String productName;

    @Schema(description = "单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "30567")
    @ExcelProperty("单位")
    private String unitName;

    @Schema(description = "产品单位单位", requiredMode = Schema.RequiredMode.REQUIRED, example = "30567")
    @ExcelProperty("产品单位单位")
    private Long productUnitId;

    @Schema(description = "产品单价", example = "10149")
    @ExcelProperty("产品单价")
    private BigDecimal productPrice;

    @Schema(description = "数量", requiredMode = Schema.RequiredMode.REQUIRED, example = "17020")
    @ExcelProperty("数量")
    private BigDecimal count;

    @Schema(description = "总价", example = "10151")
    @ExcelProperty("总价")
    private BigDecimal totalPrice;

    @Schema(description = "备注", example = "随便")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "销售出库数量", example = "20176")
    @ExcelProperty("销售出库数量")
    private BigDecimal outCount;

    @Schema(description = "销售退货数量", example = "25560")
    @ExcelProperty("销售退货数量")
    private BigDecimal returnCount;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}