https://bugs.kde.org/show_bug.cgi?id=380187

--- Comment #4 from Bernhard Scheirle <bernhard+...@scheirle.de> ---
(In reply to Stephane MANKOWSKI from comment #3)
> In fact, for shares, 3 dates can be interesting:
> 1- The date and time when the shares have been bought. To be able to compute
> the price.
> 2- The date when the shares have been bought. To have an estimation of the
> shares value at the beginning.
> 3- Today. To have the current estimation of the shares value.

True, that one and two are two different things wasn't on my radar.

> If I well understand, you would like to have: The history values of your
> shares.
> This history can be modified due to the number of shares or its value.
> Skrooge is not able to display that.

Yes, that is what I want.

> [...]
> I can not sum up the shares because I don't have guarantee that all
> operations of the report are in the same unit. I don't know how to sum
> apples and bananas. That's why, all operations are computed in primary unit
> (€) and then mathematical operations can be done.

You can not sum them up directly, but indirectly it is possible.

Example:
* 2 shares: Apples and Bananas
* On day 1 we buy 10 Apples for 2€ each, 7 Bananas for 5€ each and in the
evening one more Apple for 2.5€.
* On day 2 we put 5 € directly into the account, sell 2 Apples for 3€ each and
buy 3 Bananas for 0.5€ each.


Operations:
----|--------|--------|---------------|------------------------------|----------------------------------
Day | What   | Amount | Cost per Unit | Value at creation date/time  | Value
(as of now = end of day 2)
----|--------|--------|---------------|------------------------------|----------------------------------
  1 | Apple  |     10 | 2.00 €        | 20.00 € [10 * 2.00 €]        |   30.00
€ [10 * 3.00 €]
    | Banana |      7 | 5.00 €        | 35.00 € [ 7 * 5.00 €]        |    3.50
€ [ 7 * 0.50 €]
    | Apple  |      1 | 2.50 €        |  2.50 € [ 1 * 2.50 €]        |    3.00
€ [ 1 * 3.00 €]
----|--------|--------|---------------|------------------------------|-----------------------------
  2 | €      |      5 | 1.00 €        |  5.00 € [ 5 * 1.00 €]        |    5.00
€ [ 5 * 1.00 €]
    | Apple  |     -2 | 3.00 €        | -6.00 € [-2 * 3.00 €]        |   -6.00
€ [-2 * 3.00 €]
    | Banana |      3 | 0.50 €        |  1.50 € [ 3 * 0.50 €]        |    1.50
€ [ 3 * 0.50 €]
--------------------------------------|------------------------------|-----------------------------
Overall Total:                        | Sum would be obviously wrong |   37.00
€
                                      | See below for correct total  | Sum of
above values
--------------------------------------|------------------------------|-----------------------------

Overall Total: 
1. Sum up the amount of each share individually. (Total column)
2. Compute current value for each share. (Value column)
3. Sum up the Value column.

-------|-----------------|--------------------------
What   | Total           | Value (as of now = end of day 2)
-------|-----------------|--------------------------
€      |  5 [ 5        ] |  5.00 € [ 5 * 1.00 €]
Apple  |  8 [10 + 1 - 2] | 27.00 € [ 9 * 3.00 €]
Banana | 10 [ 7 + 3    ] |  5.00 € [10 * 0.50 €]
-------------------------|-------------------------
Total:                   | 37.00 € [ 5.00 € + 27.00 € + 5.00 €] 
-------------------------|-------------------------

Daily Total (Day 1): 
Same computation as for the overall, monthly, ... total 
-------|-------------|--------------------------
What   | Total       | Value (as of end of day 1)
-------|-------------|--------------------------
€      |  0 [      ] |  0.00 € [ 0 * 1.00 €]
Apple  | 11 [10 + 1] | 27.50 € [11 * 2.50 €]
Banana |  7 [ 7    ] | 35.00 € [ 7 * 5.00 €]
---------------------|-------------------------
Total:               | 62.00 €
---------------------|-------------------------


Computed overall total matches the overall total skrooge currently computes.
But the daily, monthly, ... total is different from the skrooge daily, monthly,
... total.
The new daily, monthly, ... total would represent the value of the account at
the given date/time (respecting the shares value at that time).
And therefore the reports would get the desired form.



> My first feeling is that the "Report" page is too generic to be able to
> cover your request.

I don't think that is the case.
Either just use the new total computation (I currently see no use case for
reports with the old total. But that doesn't mean that there isn't one.)
or add an option so the user can select what values/totals should be used as
input.


Anyhow thank you for your time and if you see any flaws in my suggestion please
let me know, because I'm by no means a financial expert.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to