After the below modification on v3 the report.accttransvalues gets called only once for default work period, incase i need to view last fridays report it still displays the paymens of the current work period.how can i adapt this to my requirements.
var payme = ReportContext.AccountTransactionValues.Where(x => x.AccountTypeId == 5).ToList();
foreach (var paymentnfo in payme)
{
report.AddRow("Cust", paymentnfo.Name.ToString(), paymentnfo.Credit.ToString());
}
report.AddRow("Cust", Resources.Total.ToUpper(), payme.Sum(x => x.Credit).ToString(ReportContext.CurrencyFormat));
return report.Document;