On 2024-01-03, Tavis Ormandy wrote:
> The intention is that if you do bal -X '$', it shows me $100, but only
> debits checking $95 on purchase.
>
I think I figured out a way to do this, here is a solution:
= expr (commodity == 'USTBILL')
; VALUE:: $1
2009/01/01 Buy
Assets:Broker 100 USTBILL @ $0.95
Assets:Checking
2009/02/01 Sell
Assets:Broker -100 USTBILL {$0.95} [2009/01/01]
@ $1
Assets:Checking $100
Income:Capital Gains
I don't know if this is the "right" way to record these transactions, but
the output makes sense to me?
I'm not 100% convinced the fixed lot pricing feature is working as intended...
Tavis.
--
_o) $ lynx lock.cmpxchg8b.com
/\\ _o) _o) $ finger [email protected]
_\_V _( ) _( ) @taviso
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ledger-cli/un4j22%245s1%241%40ciao.gmane.io.