package com.fjhx.purchase.entity.invoice.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fjhx.file.entity.ObsFile;
import com.ruoyi.common.core.domain.BasePo;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 发票管理
 * </p>
 *
 * @author 
 * @since 2023-04-12
 */
@Getter
@Setter
@TableName("invoice")
public class Invoice extends BasePo {

    /**
     * 供应商ID
     */
    private Long supplyId;

    /**
     * 开票金额
     */
    private BigDecimal money;

    /**
     * 发票类型
     */
    private Integer type;

    /**
     * 备注
     */
    private String remark;

    /**
     * 发票明细列表
     */
    @TableField(exist = false)
    private List<InvoiceDetails> invoiceDetailsList;

    /**
     * 附件列表
     */
    @TableField(exist = false)
    private List<ObsFile> fileList;

    /**
     * 归属公司id
     */
    private Long companyId;

}
