package com.ruoyi.web.sales.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.web.base.domain.base.Base;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = false)
@TableName("sales_allowance_item")
@ApiModel(value = "SalesAllowanceItem对象", description = "销售折让单出库清单")
public class SalesAllowanceItem extends Base {

    private static final long serialVersionUID = 1L;

    @TableField(exist = false)
    private String remark;

    @ApiModelProperty(value = "折让编号")
    private String allowanceNum;

    @ApiModelProperty(value = "销售单号(销售出库单编号)")
    @Excel(name = "销售单号")
    private String deliveryNum;

    @ApiModelProperty(value = "销售日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销售日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date salesDate;

    @ApiModelProperty(value = "批次")
    private String batchNum;

    @ApiModelProperty(value = "品名")
    @Excel(name = "品名")
    private String goodsName;

    @ApiModelProperty(value = "数量")
    private String quantity;

    @ApiModelProperty(value = "单位")
    private String unit;

    @ApiModelProperty(value = "单价")
    private String unitPrice;

    @ApiModelProperty(value = "金额")
    private String amount;

    @ApiModelProperty(value = "备注")
    private String goodsRemark;

    @TableField(exist = false)
    @ApiModelProperty(value = "货品编号(录入辅助)")
    private String goodsNum;
}
