using System; namespace BBWYB.Client.Models { public class OrderCostResponse { /// /// 成本毛利率 /// public decimal ProfitRatio { get { return TotalCost == 0 ? 0 : Math.Round(Profit / TotalCost * 100, 2); } } public decimal TotalCost { get; set; } public string OrderId { get; set; } public DateTime CreateTime { get; set; } /// /// 发货快递费 /// public decimal DeliveryExpressFreight { get; set; } = 0.00M; /// /// 是否手动编辑过成本 /// public bool IsManualEdited { get; set; } = false; /// /// 平台扣点金额 /// public decimal PlatformCommissionAmount { get; set; } = 0.00M; /// /// 平台扣点百分比 /// public decimal PlatformCommissionRatio { get; set; } /// /// 优惠金额 /// public decimal PreferentialAmount { get; set; } = 0.00M; /// /// 利润 /// public decimal Profit { get; set; } = 0.00M; /// /// 采购金额 /// public decimal PurchaseAmount { get; set; } = 0.00M; } }