Gomesh's picture
May 02, 2016
2061 views
Reputation: 4

I Need to Show Customer account payments on Report

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;

We have already answers to
1030 questions
E-Posta Facebook Twitter RSS Skype
Telefon (212) 252 0634