package com.dk.mdm.model.report.sale;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.dk.mdm.model.report.Util;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@Data
@Accessors(chain = true)
/* 销售分析 - 退货情况 */
public class ReturnSituationStaff {

    @Excel(name="出库额（万）",width = 15,orderNum = "3")
    private BigDecimal outAmount;

    @Excel(name="序号",width = 10)
    private Integer kpiIndex;

    @Excel(name="退货额（万）",width = 15,orderNum = "2")
    private BigDecimal rejectAmount;

    @Excel(name="业务员名称",width = 35,orderNum = "1")
    private String staffName;

    @Excel(name="退货占率",width = 10,orderNum = "4")
    private BigDecimal kpiRate;


    public void setOutAmount(BigDecimal outAmount) {
        this.outAmount = Util.calc10000(outAmount);
    }

    public void setRejectAmount(BigDecimal rejectAmount) {
        this.rejectAmount = Util.calc10000(rejectAmount);;
    }
}
