commit
cd38dba3f0
|
@ -567,7 +567,10 @@ namespace Core.Main.DataObjects
|
||||||
if (extraSection != null)
|
if (extraSection != null)
|
||||||
{
|
{
|
||||||
JArray monthlyStatsSection = (JArray)extraSection["monthlyStats"];
|
JArray monthlyStatsSection = (JArray)extraSection["monthlyStats"];
|
||||||
_monthlyStats = monthlyStatsSection.Select(j => BuildMonthlyStatsData(j as JObject)).ToList();
|
_monthlyStats = monthlyStatsSection
|
||||||
|
.Where(j => j["totalSales"] != null && (double)j["totalSales"] != 0 && j["avgGrowth"] != null)
|
||||||
|
.Select(j => BuildMonthlyStatsData(j as JObject))
|
||||||
|
.ToList();
|
||||||
_monthlyStatsRefresh = DateTime.UtcNow.AddSeconds(_systemConfiguration.GeneralSettings.Monitor.DashboardChartsRefreshSeconds - 1);
|
_monthlyStatsRefresh = DateTime.UtcNow.AddSeconds(_systemConfiguration.GeneralSettings.Monitor.DashboardChartsRefreshSeconds - 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ using Core.Helper;
|
||||||
using Microsoft.Extensions.DependencyInjection;
|
using Microsoft.Extensions.DependencyInjection;
|
||||||
|
|
||||||
|
|
||||||
[assembly: AssemblyVersion("2.8.4")]
|
[assembly: AssemblyVersion("2.8.5")]
|
||||||
[assembly: AssemblyProduct("PT Magic")]
|
[assembly: AssemblyProduct("PT Magic")]
|
||||||
|
|
||||||
namespace PTMagic
|
namespace PTMagic
|
||||||
|
|
Loading…
Reference in New Issue