package com.jianshui.platform.dto.invoicered;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @Author: kane
 * @Description: 红字信息详情
 * @CreateTime: 2023-06-25  15:38
 * @Version: 1.0
 **/
@Data
@ApiModel("红字信息详情")
public class RedinfodetailDTO {

    @NotEmpty
    @ApiModelProperty("商品名称")
    private String goodName;
    @NotEmpty
    @ApiModelProperty("规格型号")
    private String spec;
    @NotEmpty
    @ApiModelProperty("单位")
    private String unit;
    @NotEmpty
    @ApiModelProperty("商品数量")
    private BigDecimal num;
    @NotNull
    @ApiModelProperty("单价")
    private BigDecimal cost;
    @NotNull
    @ApiModelProperty("金额")
    private BigDecimal money;

    @NotNull
    @ApiModelProperty("税率")
    private BigDecimal taxrate;
    @NotNull
    @ApiModelProperty("税额")
    private BigDecimal tax;
}
