Greetings,
I am currently evaluating ledger, and other applications in the ledger family, for a business where the majority of transactions involve one or more currencies other than the (tax) unit of account. My questions apply equally well to situations involving inventory, share portfolios, and so on, except perhaps for the number of different "lots" in existence.
I've read the ledger 3 manual, and also the "Trading with Beancount" document.
As far as I can tell, allocation of sold units to bought units for the purpose of cost basis is a manual process. In order for the gain to be calculated, I have to determine what lot(s) are involved, and refer back to those. Is my understanding correct?
Is there a way to say to the software "gains on commodity X are to be calculated on a FIFO basis", and have it do the work for you?
If every transaction involves the creation of, and disposal of, one or more lots, this is a lot to keep track of, and it seems like work the computer should be able to do.
To try and construct a minimal example, if we have this:
2014-10-15 buy widgets
assets:inventory 10 widgets
assets:GBP -80 GBP
2014-10-15 buy another widget
assets:inventory 1 widget
assets:GBP -9 GBP
2014-10-16 sell a widget
assets:GBP 11 GBP
assets:inventory -1 widgets
then is there any way the software can compute that the sold widget has a cost basis of 8 GBP, if it is asked to use the FIFO basis for widgets?
thanks, Tom.