Commit 62ef3cde by guanzhenshan

解决如果结束时间不是周日时显示的日期和数据不一样的问题

parent b38ef787
...@@ -696,7 +696,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers ...@@ -696,7 +696,7 @@ namespace Bailun.DC.Web.Areas.Reports.Controllers
foreach (var item in list) foreach (var item in list)
{ {
item.day = item.dayStart.ToString("MMdd") + "-" + item.dayEnd.ToString("MMdd"); item.day = item.dayStart.ToString("MMdd") + "-" + (item.dayEnd>end?end:item.dayEnd).ToString("MMdd");
item.difference_amount = item.amount_purchase - item.amount_sales; item.difference_amount = item.amount_purchase - item.amount_sales;
item.difference_count = item.count_purchase - item.count_sales; item.difference_count = item.count_purchase - item.count_sales;
......
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