package com.yc.ship.module.trade.controller.admin.invoice.inventory;

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 = "管理后台 - 发票清单 Response VO")
@Data
@ExcelIgnoreUnannotated
public class InvoiceInventoryRespVO {

    @Schema(description = "主键id", requiredMode = Schema.RequiredMode.REQUIRED, example = "24338")
    @ExcelProperty("主键id")
    private Long id;

    @Schema(description = "发票id", example = "5796")
    @ExcelProperty("发票id")
    private Long invoiceId;

    @Schema(description = "序号")
    @ExcelProperty("序号")
    private Integer sort;

    @Schema(description = "金额")
    @ExcelProperty("金额")
    private BigDecimal amount;

    @Schema(description = "税额")
    @ExcelProperty("税额")
    private BigDecimal tax;

    @Schema(description = "商品编码")
    @ExcelProperty("商品编码")
    private String code;

    @Schema(description = "项目名称", example = "赵六")
    @ExcelProperty("项目名称")
    private String name;

    @Schema(description = "税率")
    @ExcelProperty("税率")
    private BigDecimal taxRate;

    @Schema(description = "扣除额")
    @ExcelProperty("扣除额")
    private BigDecimal deductionAmount;

    @Schema(description = "行性质。0-正常行 1-折扣行 2-被折扣行")
    @ExcelProperty("行性质。0-正常行 1-折扣行 2-被折扣行")
    private Integer fphxz;

    @Schema(description = "含税标志")
    @ExcelProperty("含税标志")
    private Integer hsbz;

    @Schema(description = "空：非零税率，1：免税，2：不征税 3:普通零税率")
    @ExcelProperty("空：非零税率，1：免税，2：不征税 3:普通零税率")
    private Integer lslbs;

    @Schema(description = "0：不使用，1：使用,SPID为空时必填")
    @ExcelProperty("0：不使用，1：使用,SPID为空时必填")
    private Integer yhzcbs;

    @Schema(description = "创建时间")
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
