package com.brilliance.isc.bo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;

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

import static com.brilliance.mda.runtime.mda.Constants.NULLSTR;

/**
 * TABLE:imfinv - 发票登记表
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class Imfinv {

    //INR
    private String inr = NULLSTR;

    //平台外业务类型
    private String bustyp;

    //业务描述
    private String busdcr;

    //批注方编号
    private String antnum;

    //批注方名称
    private String antnam;

    //批注日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date antdat;

    //批注事项
    private String antdtl;

    //smh关联主键
    private String smhinr;

    //smh关联主键
    private String regsmhinr;

    //查询登记标志
    private String selreg;

    //登记状态
    private String regsta;

    //交单批注日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date prebnkdat;

    //操作柜员
    private String optusr;

    //经办机构
    private String optbranch;

    //发票类型
    private String invtyp;

    //发票号码
    private String invnum;

    //发票代码
    private String invcod;

    //未税金额
    private BigDecimal invamt = new BigDecimal("0.00");

    //开票日期
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date opndat;

    //校验码后六位
    private String vrfcod ;

    //影像id
    private String imgcod ;

    //是否重复性融资
    private String isfnc;

    //有效标识
    private String valflg = NULLSTR;

}
