package com.jwipc.finance.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author qzc
 * @since 2025-07-21
 */
@Getter
@Setter
@TableName("fin_payment_advance_refund_transfer_apply_detail")
public class PaymentAdvanceRefundTransferApplyDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * ID主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 行号
     */
    private String itemNo;

    /**
     * 采购订单号
     */
    private String poCode;

    /**
     * 订单行号
     */
    private String poItemNo;

    /**
     * 预付款申请单号
     */
    private String appNo;

    /**
     * 预付款申请单行
     */
    private String appItemNo;

    /**
     * 采购员
     */
    private String purchaser;

    /**
     * 订单数量
     */
    private BigDecimal poNum;

    /**
     * 订单行工厂编码
     */
    private String factoryCode;

    /**
     * 物料编码
     */
    private String materialCode;

    /**
     * 物料描述
     */
    private String materialDesc;

    /**
     * 税率代码
     */
    private String taxCode;

    /**
     * 税率描述
     */
    private String taxDesc;

    /**
     * 含税单价
     */
    private BigDecimal itPrice;

    /**
     * 未税单价
     */
    private BigDecimal ntPrice;

    /**
     * 订单含税金额
     */
    private BigDecimal itAmount;

    /**
     * 已付预付款含税金额
     */
    private BigDecimal prepaymentAmountInclusiveTax;

    /**
     * 付款条件编码
     */
    private String paymentConditionCode;

    /**
     * 付款条件描述
     */
    private String paymentConditionDesc;

    /**
     * 报关公司
     */
    private String customsBroker;

    /**
     * 摘要
     */
    private String summary;
    /**
     * 参考采购订单（转单时必填）
     */
    private String referPurchaseOrder;

    /**
     * 参考采购订单行（转单时必填）
     */
    private String referPurchaseOrderItem;

    /**
     * 预付款变更单号
     */
    private String paymentChangeNumber;
    /**
     * 预付款变更单id
     */
    private Long paymentChangeId;
    /**
     * 采购订单号_订单行号
     */
    private String dataKey;

    /**
     * 本次登记含税金额
     */
    private BigDecimal theRegistTaxAmount;
    /**
     * 可登记含税金额
     */
    private BigDecimal cantRegistTaxAmount;
    /**
     * 已付预付款含税金额
     */
    private BigDecimal prepaidTaxAmount;
    /**
     * 已冲账含税金额
     */
    private BigDecimal alreadyApplyAmount;
    /**
     * 已登记含税金额
     */
    private BigDecimal registTaxAmount;
    /**
     * 删除标志 0 未删除 1 删除
     */
    private Integer deleteFlag;

    @TableField(exist = false)
    private String currencyCode;

    @TableField(exist = false)
    private Long paId;

    @TableField(exist = false)
    private String status;

    @TableField(exist = false)
    private Integer dataType;

}
