package com.ruoyi.buyerapi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.domain.entity.SysDept;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 辅助帐凭证对象(导入) buyer_auxiliary_voucher
 *
 * @author ruoyi
 * @date 2022-09-22
 */
@Data
public class BuyerAuxiliaryVoucherExcel extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期(yyyy-MM-dd)", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    @Excel(name = "凭证类型(记/收/付/转账)", readConverterExp = "type1=记,type2=收,type3=付,type4=转账")
    private String type;

    /** 编号 */
    @Excel(name = "凭证号")
    private String code;

    /** 制单人 */
    @Excel(name = "制单人")
    private String producer;

    /** 支出类型 */
    @Excel(name = "支出类型(资本化支出/费用化支出)", readConverterExp = "type1=资本化支出,type2=费用化支出")
    private String expenseType;

    @Excel(name = "摘要")
    private String summary;

    @Excel(name = "科目1(研发费用/应付职工薪酬/原材料/其他应付款/应付账款/累计折旧/累计摊销/长期待摊费用/管理费用)")
    private String subject1;

    @Excel(name = "科目2(人员人工费用/直接投入费用/折旧费用与长期待摊费用/无形资产摊销费用/设计费用/委托外部研发开发费用（境内）/委托外部研发开发费用（境外）/其他费用/工资、奖金、津贴和补贴/社会保险费/住房公积金)")
    private String subject2;

    @Excel(name = "借方余额")
    private String debitBalance;

    @Excel(name = "贷方余额")
    private String creditBalance;

    public String getAllStr(){
        return getDate() + getType() + getCode() + getProducer() + getExpenseType();
    }
}
