package com.ruoyi.purchase.pojo;
|
|
import com.baomidou.mybatisplus.annotation.*;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import lombok.Data;
|
|
import java.math.BigDecimal;
|
import java.util.Date;
|
|
/**
|
* 采购台账产品开票记录对象 product_record
|
*
|
* @author ruoyi
|
* @date 2025-05-23
|
*/
|
@Data
|
@TableName("product_record")
|
public class ProductRecord {
|
private static final long serialVersionUID = 1L;
|
|
/**
|
* 主键id
|
*/
|
@TableId(value = "id", type = IdType.AUTO)
|
private Long id;
|
|
/**
|
* 来票登记id
|
*/
|
private Long ticketRegistrationId;
|
|
/**
|
* 采购台账id
|
*/
|
private Long purchaseLedgerId;
|
|
/**
|
* 产品大类
|
*/
|
private String productCategory;
|
|
/**
|
* 规格型号
|
*/
|
private String specificationModel;
|
|
/**
|
* 单位
|
*/
|
private String unit;
|
|
/**
|
* 数量
|
*/
|
private BigDecimal quantity;
|
|
/**
|
* 税率
|
*/
|
private BigDecimal taxRate;
|
|
/**
|
* 含税单价
|
*/
|
private BigDecimal taxInclusiveUnitPrice;
|
|
/**
|
* 含税总价
|
*/
|
private BigDecimal taxInclusiveTotalPrice;
|
|
/**
|
* 不含税总价
|
*/
|
private BigDecimal taxExclusiveTotalPrice;
|
|
/**
|
* 发票类型
|
*/
|
private String invoiceType;
|
|
/**
|
* 1.销售台账,2.采购台账
|
*/
|
private String type;
|
|
/**
|
* 本次来票数
|
*/
|
private Long ticketsNum;
|
|
/**
|
* 本次来票金额(元)
|
*/
|
private BigDecimal ticketsAmount;
|
|
/**
|
* 未来票数
|
*/
|
private Long futureTickets;
|
|
/**
|
* 未来票金额(元)
|
*/
|
private BigDecimal futureTicketsAmount;
|
|
/**
|
* 产品id
|
*/
|
private Long productId;
|
|
/**
|
* 型号id
|
*/
|
private Long productModelId;
|
|
/**
|
* 创建时间
|
*/
|
@JsonFormat(pattern = "yyyy-MM-dd")
|
private Date createdAt;
|
|
@TableField(fill = FieldFill.INSERT)
|
private Integer tenantId;
|
}
|