package com.fjhx.sale.entity.statement.vo;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
public class ProfitSettlementVo {

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

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

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

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

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

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

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

    /**
     * 销售合同到账金额
     */
    private BigDecimal contractArrival = BigDecimal.ZERO;

    /**
     * 其他收入
     */
    private BigDecimal otherIncome = BigDecimal.ZERO;

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

    /**
     * 支付货款
     */
    private BigDecimal payForGoods = BigDecimal.ZERO;

    /**
     * 其他支出
     */
    private BigDecimal otherExpenses = BigDecimal.ZERO;

    /**
     * 汇率json
     * List<ContractCurrencyRate> 转 json
     * {@link com.fjhx.sale.entity.contract.bo.ContractCurrencyRate}
     */
    private String currencyRateJson;

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

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

    /**
     * 毛利
     */
    private BigDecimal grossProfit;

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

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

}
