using System;
namespace BBWYB.Client.Models
{
public class OrderCostResponse
{
public string OrderId { get; set; }
///
/// 平台扣点金额
///
public decimal PlatformCommissionAmount { get; set; }
///
/// 平台扣点百分比
///
public decimal PlatformCommissionRatio { get; set; }
///
/// 优惠金额
///
public decimal PreferentialAmount { get; set; }
///
/// 毛利
///
public decimal Profit { get; set; }
///
/// 成本毛利率
///
public decimal ProfitRatio
{
get
{
return TotalCost == 0 ? 0 : Math.Round(Profit / TotalCost * 100, 2);
}
}
///
/// 采购金额
///
public decimal PurchaseAmount { get; set; } = 0.00M;
///
/// 发货快递费
///
public decimal DeliveryExpressFreight { get; set; } = 0.00M;
///
/// 是否手动编辑过成本
///
public bool IsManualEdited { get; set; }
///
/// 刷单佣金
///
public decimal SDCommissionAmount { get; set; } = 0.00M;
///
/// 刷单号费
///
public decimal SDOrderAmount { get; set; } = 0.00M;
///
/// 退款金额
///
public decimal RefundAmount { get; set; } = 0.00M;
///
/// 退款采购金额
///
public decimal RefundPurchaseAmount { get; set; } = 0.0M;
///
/// 售后总成本
///
public decimal AfterTotalCost { get; set; } = 0.0M;
///
/// 售前成本
///
public decimal BeforeTotalCost
{
get
{
return PurchaseAmount + DeliveryExpressFreight;
}
}
///
/// 成本总计
///
public decimal TotalCost
{
get
{
return SDCommissionAmount + SDOrderAmount +
PlatformCommissionAmount + (PurchaseAmount - RefundPurchaseAmount) +
DeliveryExpressFreight +
AfterTotalCost;
}
}
}
}