using BBWY.Server.Model.Db;
using System;
using System.Collections.Generic;
namespace BBWY.Server.Model.Dto
{
public class OrderAchievementResponse
{
public long ShopId { get; set; }
///
/// 成交额(用户实付)
///
public decimal SaleAmount { get; set; }
///
/// 采购金额(货物成本)
///
public decimal PurchaseAmount { get; set; }
///
/// 销售运费
///
public decimal DeliveryExpressFreight { get; set; }
///
/// 平台扣点
///
public decimal PlatformCommissionAmount { get; set; }
///
/// 总成本
///
public decimal TotalCost
{
get
{
return PurchaseAmount + DeliveryExpressFreight + PlatformCommissionAmount + AdvCost;
}
}
///
/// 利润
///
public decimal Profit { get; set; }
///
/// 利润率
///
public decimal ProfitRaito
{
get
{
return TotalCost == 0 ? 0 : Math.Round(Profit / TotalCost * 100, 2);
}
}
///
/// 人工成本
///
public decimal EmployeeCost { get; set; }
///
/// 税务成本
///
public decimal TaxCost { get; set; }
///
/// 订单数量
///
public int OrderCount { get; set; }
///
/// 推广成本(包含SD成本)
///
public decimal AdvCost { get; set; }
///
/// 推广花费截至时间
///
public DateTime? PularizeEndDate { get; set; }
public decimal SDCost { get; set; }
///
/// 推广明细
///
public IList ShoppopularizeList { get; set; }
}
}