Ticket #41 (new defect)
Ability to report GBP gain/loss correctly for UK quoted stocks
| Reported by: | coeedw | Owned by: | maccaf |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | core | Version: | devel |
| Severity: | minor | Keywords: | |
| Cc: | OS: | All |
Description
UK stocks are quoted in pence (100 pence = £1 GBP).
If you set up a stock as GBP however, any gain/loss on the account or portofolio views are showed in pence (ie it shows £1,234.56 when it should really state 1,234.56 / 100 = £12.34 ).
The logical solution would be to allow UK stocks to be assigned a currency of GBX (ie a psuedo non-ISO currency code). Then adding a GBP/GBX FX rate of 100 to currencies.xml would imply the correct GBP amounts get displayed in the porfolio / account view.
Problem is I don't see an obvious way of adding to the Currency class (after java 1.4).
Change History
comment:1 in reply to: ↑ description Changed 2 years ago by nwestbury
Note: See
TracTickets for help on using
tickets.

This custom of quoting stock prices in pence has caused problems in many accounting packages. Adding a pseudo currency is a hack and could potentially cause other problems. I import data from JMoney and am concerned the currencies won't match up. A better solution may be to allow a custom parser and formatter to be defined for stock prices in a given currency or in a given brokerage account.