package com.fjhx.sale.entity.commission.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.ruoyi.common.core.domain.BasePo;

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

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 业绩提成表
 * </p>
 *
 * @author
 * @since 2023-05-11
 */
@Getter
@Setter
@TableName("commission")
public class Commission extends BasePo {

    /**
     * 销售合同ID
     */
    private Long contractId;

    /**
     * 销售合同编码
     */
    private String contractCode;

    /**
     * 客户ID
     */
    private Long customerId;

    /**
     * 业务员ID
     */
    private Long userId;

    /**
     * 合同到账金额
     */
    private BigDecimal contractArrival;

    /**
     * 其他收入
     */
    private BigDecimal otherIncome;

    /**
     * 其他支出
     */
    private BigDecimal otherExpenses;

    /**
     * 收入合计
     */
    private BigDecimal totalIncome;

    /**
     * 支出合计
     */
    private BigDecimal totalExpenses;

    /**
     * 支付货款
     */
    private BigDecimal payForGoods;

    /**
     * 毛利
     */
    private BigDecimal grossGrofit;

    /**
     * 毛利率
     */
    private BigDecimal grossRofitMargin;

    /**
     * 售后
     */
    private BigDecimal afterSalesAmount;

    /**
     * 公共
     */
    private BigDecimal publicAmount;

    /**
     * 总办
     */
    private BigDecimal haveOverallAmount;

    /**
     * 部门提成
     */
    private BigDecimal departmentalCommission;

    /**
     * 个人提成
     */
    private BigDecimal personalCommission;

    /**
     * 是否结算 1已结算 0未结算
     */
    private Integer settlementStatus;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 业务员名称
     */
    private String userName;

    /**
     * 采购金额
     */
    private BigDecimal purchaseAmount;

    /**
     * 合同金额
     */
    private BigDecimal contractAmount;

    /**
     * 销售合同币种
     */
    private String contractCurrency;

    /**
     * 采购合同币种
     */
    private String purchaseCurrency;

    /**
     * 退税金额
     */
    private BigDecimal taxReturnAmount;
}
