[Quantproject-developers] QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryR
Brought to you by:
glauco_1
|
From: Marco M. <mi...@us...> - 2007-09-10 22:08:42
|
Update of /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32527/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows Modified Files: AverageNumberOfTransactionsPerDay.cs Log Message: Fixed bug: now the average number of transactions per day is rightly computed. But please Glauco take a look at the code because I commented out a code line that should be correct (to me ...). Index: AverageNumberOfTransactionsPerDay.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b4_Business/a1_Financial/a2_Accounting/h5_Reporting/SummaryRows/AverageNumberOfTransactionsPerDay.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** AverageNumberOfTransactionsPerDay.cs 29 Aug 2007 09:20:12 -0000 1.1 --- AverageNumberOfTransactionsPerDay.cs 10 Sep 2007 22:08:37 -0000 1.2 *************** *** 40,44 **** { this.rowDescription = "Average n. of transactions per day"; ! int totalNumberOfTransactions = summary.AccountReport.Account.Transactions.Count; TimeSpan timeSpanForScript = summary.AccountReport.EndDateTime.DateTime.Subtract(summary.AccountReport.StartDateTime); --- 40,46 ---- { this.rowDescription = "Average n. of transactions per day"; ! //int totalNumberOfTransactions = summary.AccountReport.Account.Transactions.Count; ! //there must be a mistake somewhere: why the previous line is not right? ! int totalNumberOfTransactions = summary.AccountReport.TransactionTable.DataTable.Rows.Count; TimeSpan timeSpanForScript = summary.AccountReport.EndDateTime.DateTime.Subtract(summary.AccountReport.StartDateTime); |