[Kmymoney-devel] Review Request: Show prices in investment reports only if they exist
Alvaro Soliverez
asoliverez at kde.org
Fri Sep 10 04:57:32 CEST 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://svn.reviewboard.kde.org/r/5298/#review7510
-----------------------------------------------------------
/trunk/extragear/office/kmymoney/kmymoney/reports/pivottable.cpp
<http://svn.reviewboard.kde.org/r/5298/#comment7699>
This is the call you should modify to fetch prices for the exact date, if a flag is set in the config of the report (say config.skipZero)
In line 109 of reportaccount.cpp, the call should be
MyMoneyPrice price = file->price(undersecurity.id(), undersecurity.tradingCurrency(), date, <new parameter>);
That should return zero if exactDate, the last parameter, is set to true.
/trunk/extragear/office/kmymoney/kmymoney/reports/pivottable.cpp
<http://svn.reviewboard.kde.org/r/5298/#comment7700>
That shouldn't depend on the type of the account, but on a config for the report
/trunk/extragear/office/kmymoney/kmymoney/reports/pivottable.cpp
<http://svn.reviewboard.kde.org/r/5298/#comment7701>
if the method in ReportAccount works, you can drop this.
- Alvaro
On 2010-09-09 19:16:33, Bernd Gonsior wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://svn.reviewboard.kde.org/r/5298/
> -----------------------------------------------------------
>
> (Updated 2010-09-09 19:16:33)
>
>
> Review request for kmymoney.
>
>
> Summary
> -------
>
> Patch for investment reports only: prices are shown only if at least one price
> exists in a requested period.
>
>
> Diffs
> -----
>
> /trunk/extragear/office/kmymoney/kmymoney/reports/kreportchartview.h 1173571
> /trunk/extragear/office/kmymoney/kmymoney/reports/kreportchartview.cpp 1173571
> /trunk/extragear/office/kmymoney/kmymoney/reports/pivottable.h 1173571
> /trunk/extragear/office/kmymoney/kmymoney/reports/pivottable.cpp 1173571
>
> Diff: http://svn.reviewboard.kde.org/r/5298/diff
>
>
> Testing
> -------
>
>
> Thanks,
>
> Bernd
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.kde.org/pipermail/kmymoney-devel/attachments/20100910/f5e4cd91/attachment.htm
More information about the KMyMoney-devel
mailing list