Commit 8c53f240 by guanzhenshan

平台利润统计的退款数据改为从订单表取

parent e019c3d0
...@@ -1408,14 +1408,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -1408,14 +1408,14 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
item.profit_rate = Math.Round((item.profit_total / item.amount_sales), 2); item.profit_rate = Math.Round((item.profit_total / item.amount_sales), 2);
} }
item.amount_refund = 0; //item.amount_refund = 0;
item.amount_refund_rate = 0; //item.amount_refund_rate = 0;
var objRefund = listRefund.Where(a => a.platform_type == item.platform_type).FirstOrDefault(); //var objRefund = listRefund.Where(a => a.platform_type == item.platform_type).FirstOrDefault();
if (objRefund != null) //if (objRefund != null)
{ //{
item.amount_refund = objRefund.amount_refund; // item.amount_refund = objRefund.amount_refund;
item.amount_refund_rate = (item.amount_sales>0?item.amount_refund/item.amount_sales:0); // item.amount_refund_rate = (item.amount_sales>0?item.amount_refund/item.amount_sales:0);
} //}
//利润减去退款 //利润减去退款
item.profit_total = (item.profit_total - item.amount_refund); item.profit_total = (item.profit_total - item.amount_refund);
...@@ -2221,6 +2221,31 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -2221,6 +2221,31 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
return File(ms, "text/csv", filename + ".csv"); return File(ms, "text/csv", filename + ".csv");
} }
/// <summary>
/// Wish 广告费
/// </summary>
/// <returns></returns>
public ActionResult WishAD()
{
return View();
}
/// <summary>
/// Wish广告费数据
/// </summary>
/// <param name="parameter"></param>
/// <param name="start">开始时间</param>
/// <param name="end">结束时间</param>
/// <param name="account">帐号</param>
/// <returns></returns>
[BailunAuthentication(LoginMode.Enforce)]
public string WishADJson(BtTableParameter parameter, DateTime? start, DateTime? end, string account)
{
return "";
}
#endregion #endregion
#region Paypal #region Paypal
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment