package com.hzs.scm.purchase.vo;

import com.hzs.common.core.annotation.Excel;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 采购入库导出vo
 * @author: sui q
 * @time: 2024/3/6 15:32
 * @classname: PurchaseExcelVO
 * @package_name: com.hzs.scm.purchase.vo
 * version 1.0.0
 */
@Data
public class PurchaseExcelVO implements Serializable {

    /**
     * 订单编号
     */
    @Excel(name = "入库编号")
    private String orderCode;

    /**
     * 管理员名称
     */
    @Excel(name = "库管员")
    private String managerName;

    /**
     * 供应商名称
     */
    @Excel(name = "供应商")
    private String cubasdocName;

    /**
     * 采购组织名称
     */
    @Excel(name = "采购公司")
    private String corpName;

    /**
     * 部门名称
     */
    @Excel(name = "采购部门")
    private String deptName;

    @Excel(name = "订单状态", readConverterExp = "1=已保存,2=已提交,3=已审核,4=已收货,5=已关闭,6=已退货")
    private Integer orderStatus;

    /**
     * 备注
     */
    @Excel(name = "备注")
    private String remark;

    /**
     * 订单日期 2023-10
     */
    @Excel(name = "入库日期", dateFormat = "yyyy-MM-dd")
    private Date orderDate;

    /**
     * 产品编号
     */
    @Excel(name = "产品编号")
    private String productCode;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String productName;

    /**
     * 规格名称
     */
    @Excel(name = "产品规格")
    private String specsName;

    /**
     * 单位名称
     */
    @Excel(name = "单位")
    private String unitName;

    /**
     * 仓库名称
     */
    @Excel(name = "仓库")
    private String storehouseName;

    /**
     * 数量
     */
    @Excel(name = "数量")
    private BigDecimal nnum;
    /**
     * 无税单价
     */
    @Excel(name = "无税单价")
    private BigDecimal norigprice;

    /**
     * 税率
     */
    @Excel(name = "税率")
    private BigDecimal ntaxrate;

    /**
     * 含税单价  = 无税单价*（1+税率）
     */
    @Excel(name = "含税单价")
    private BigDecimal norigtaxprice;

    /**
     * 无税金额  = 无税单价*数量
     */
    @Excel(name = "无税金额")
    private BigDecimal norigmny;

    /**
     * 税额 =无税单价*数量
     */
    @Excel(name = "税额")
    private BigDecimal ntax;

    /**
     * 价税合计 含税单价*数量
     */
    @Excel(name = "价税合计")
    private BigDecimal norigtaxmny;

    /**
     * 批次号
     */
    @Excel(name = "批次号")
    private String batchCode;


    /**
     * 是否赠品
     */
    @Excel(name = "赠品", readConverterExp = "0=是,1=否")
    private Integer isGift;
}
