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

import com.yc.ship.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static com.yc.ship.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;


@Schema(description = "管理后台 - 发票清单分页 Request VO")
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class InvoiceInventoryPageReqVO extends PageParam {

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

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

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

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

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

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

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

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

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

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

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

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

    @Schema(description = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
