New issue 324: When matching against a single lot, infer the currency
https://bitbucket.org/blais/beancount/issues/324/when-matching-against-a-single-lot-infer
Martin Blais:
This ought to work, there's a single posting in the ante-inventory:
```
#!python
option "booking_method" "LIFO"
;; fees
2017-01-01 open Expenses:Fees:Trading
2017-01-01 open Expenses:Fees:BTCMining
;; wallets
2017-01-01 open Assets:BTC:Jaxx
2017-01-01 open Assets:BTC:Coinbase
;; bank account
2017-01-01 open Assets:Checking
2017-06-13 * "Coinbase" "Test buying bitcoin"
Expenses:Fees:Trading 1.99 USD
Assets:BTC:Coinbase 0.01878653 BTC
{2661.48 USD}
Assets:Checking -51.99 USD
;; transfer from Assets:BTC:Coinbase using LIFO booking method (I want to avoid
;; having to specify the cost basis to match positions here since this is not
important).
;; I want to keep the cost basis with the BTC when they are transferred to
other Assets
;; accounts, since I still will have to compute P&L with them. I think losing
the cost
;; basis when spending to expenses is okay (?) unless I need to book them under
losses?
;; These examples consider that I know the amounts of all three postings
2017-06-14 * "Transfer" "Transfer funds to Jaxx wallet"
Expenses:Fees:BTCMining 0.00105853 BTC
Assets:BTC:Coinbase -0.00144853 BTC {}
Assets:BTC:Jaxx 0.00039 BTC
```
Responsible: blais
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/20180814035138.1476.58820%40celery-worker-105.ash1.bb-inf.net.
For more options, visit https://groups.google.com/d/optout.