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

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

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

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = false) // 设置 chain = false，避免用户导入有问题
public class MaterialOutboundImportExcelVO {

    @ExcelProperty("单据号(同单号多行自动合并)")
    private String orderNo;

    @ExcelProperty("单据日期(yyyy-MM-dd)")
    private LocalDate orderDate;

    @ExcelProperty("领用部门编号")
    private String outDeptNumber;

    @ExcelProperty("领用部门名称(无编号时填)")
    private String outDeptName;

    @ExcelProperty("领用人")
    private String outUser;

    @ExcelProperty("出库原因")
    private String outReason;

    @ExcelProperty("备注")
    private String remark;

    @ExcelProperty("物资编号")
    private String materialNumber;

    @ExcelProperty("物资名称(无编号时填)")
    private String materialName;

    @ExcelProperty("关联入库单号")
    private String inboundOrderNo;

    @ExcelProperty("数量")
    private BigDecimal quantity;

    @ExcelProperty("销售单价")
    private BigDecimal saleUnitPrice;

    @ExcelProperty("金额")
    private BigDecimal amount;

    @ExcelProperty("生产日期(yyyy-MM-dd)")
    private LocalDate produceDate;
}
