Rank: Advanced Member
Groups: Developers, Registered, HelpDesk, Authorized User Joined: 10/5/2018(UTC) Posts: 704
Thanks: 5 times Was thanked: 113 time(s) in 112 post(s)
|
UPDATED! Hi Judy, Can you please apply this fix and confirm that the issue is resolved. 1- Open file CommerceBuilder\Reporting\ReportDataSource.cs Code:.Add(Projections.GroupProperty(Projections.SqlFunction("day", NHibernateUtil.Int32, Projections.Property("U.LastActivityDate"))), "Date")
.Add(Projections.GroupProperty(Projections.SqlFunction("month", NHibernateUtil.Int32, Projections.Property("U.LastActivityDate"))), "Month"))
2- Replace with Code:.Add(Projections.GroupProperty(Projections.SqlFunction("day", NHibernateUtil.Int32, Projections.SqlFunction(new SQLFunctionTemplate(NHibernateUtil.DateTime, string.Format("DateAdd(Hour, {0}, ?1)", (AbleContext.Current.Store.TimeZoneOffset))), NHibernateUtil.DateTime, Projections.Property("U.LastActivityDate")))), "Date")
.Add(Projections.GroupProperty(Projections.SqlFunction("month", NHibernateUtil.Int32, Projections.SqlFunction(new SQLFunctionTemplate(NHibernateUtil.DateTime, string.Format("DateAdd(Hour, {0}, ?1)", (AbleContext.Current.Store.TimeZoneOffset))), NHibernateUtil.DateTime, Projections.Property("U.LastActivityDate")))), "Month"))
3- Compile the code Edited by user Thursday, March 3, 2022 5:05:48 AM(UTC)
| Reason: Not specified
|
 1 user thanked shaharyar for this useful post.
|
|