Commit 36bd3a9e by guanzhenshan

更新平台利润统计报表的利润计算

parent 77f1e523
...@@ -1405,7 +1405,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -1405,7 +1405,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
item.adfee = ebayADFee != null ? ebayADFee.gross_amount_rmb : 0; item.adfee = ebayADFee != null ? ebayADFee.gross_amount_rmb : 0;
item.putawayfee = ebayPutAway != null ? ebayPutAway.gross_amount_rmb : 0; item.putawayfee = ebayPutAway != null ? ebayPutAway.gross_amount_rmb : 0;
item.profit_total = (item.profit_total - item.adfee ?? 0 - item.putawayfee ?? 0); item.profit_total = (item.profit_total - (item.adfee ?? 0) - (item.putawayfee ?? 0));
item.profit_rate = item.amount_sales != 0?Math.Round((item.profit_total / item.amount_sales), 2):0; item.profit_rate = item.amount_sales != 0?Math.Round((item.profit_total / item.amount_sales), 2):0;
} }
......
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