package com.bailuntec.domain.dto;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * <p>
 *
 * </p>
 *
 * @author robbendev
 * @since 2020/11/28 3:56 下午
 */
@Data
public class SalesDetailItem {
    //销量（预测销量）
    private BigDecimal sales;
    //日期
    private LocalDate date;

    //周系数
    private BigDecimal weekCoefficient;
    //每日销量配置
    private BigDecimal salesDayConfig;

    private String bailunSku;
    private String warehouseCode;

    //最终显示的销量
    private BigDecimal showSales;

    public void calcShowSales() {
        this.showSales = sales;
        if (salesDayConfig != null) {
            this.showSales = salesDayConfig;

        }
//        if (weekCoefficient != null) {
//            this.showSales = showSales.multiply(weekCoefficient);
//        }
    }
}
