prioritize pricedb over last purchase price?

2021-03-24 Thread Jim Robinson
Hi folks, Is there a way for us to tell ledger to prefer the pricedb value over the @@ purchase value in an entry? My situation here is that yesterday I made a purchase of an ETF on the secondary market and while my pricedb has the end-of-day price of the ETF ledger is preferring my purchase

Re: prioritize pricedb over last purchase price?

2021-03-24 Thread Martin Michlmayr
* Jim Robinson [2021-03-24 06:26]: > Is there a way for us to tell ledger to prefer the pricedb value > over the @@ purchase value in an entry? No, but you could turn the @@ purchase value into a (@@) virtual cost, which means it won't be entered into the pricedb. https://www.ledger-cli.org/3.0/

Re: prioritize pricedb over last purchase price?

2021-03-24 Thread Jim Robinson
That works for me, thank you! On Wednesday, March 24, 2021 at 6:59:51 AM UTC-7 Martin Michlmayr wrote: > * Jim Robinson [2021-03-24 06:26]: > > Is there a way for us to tell ledger to prefer the pricedb value > > over the @@ purchase value in an entry? > > No, but you could turn the @@ purchase