Hi guys! I'm a bit confused. Reading section '5.17 Prices versus costs'
in the doc, it shows this example,
2012-04-10 My Broker
Assets:Brokerage 10 AAPL @ $50.00
Assets:Brokerage:Cash $-500.00
2012-04-10 My Broker
Assets:Brokerage 10 AAPL {$50.00}
Assets:Brokerage:Cash $-500.00
and the doc says they're functionally equivalent.
Taking this example, I built this other one, but
Ledger says that don't balance
2004/05/01 Stock purchase
Assets:Broker 49 AAPL @ $30.00
Assets:Broker 1 AAPL {$30.00}
Expenses:Broker:Commissions $19.95
Assets:Broker $-1,519.95
but this does
2004/05/01 Stock purchase
Assets:Broker 50 AAPL @ $30.00 ;; <- joining
posting
Expenses:Broker:Commissions $19.95
Assets:Broker $-1,519.95
Is this behavior expected? If I'm wrong, could you point me to the
appropriate documentation for me to understand?
On Monday, July 28, 2025 at 10:37:39 PM UTC-4 Marcelo Muñoz wrote:
> in the doc, it shows this example,
>
> 2012-04-10 My Broker
> Assets:Brokerage 10 AAPL @ $50.00
> Assets:Brokerage:Cash $-500.00
>
> 2012-04-10 My Broker
> Assets:Brokerage 10 AAPL {$50.00}
> Assets:Brokerage:Cash $-500.00
>
>
> and the doc says they're functionally equivalent.
> Taking this example, I built this other one, but
> Ledger says the second doesn't balance.
>
> 2004/05/01 Stock purchase
> Assets:Broker 49 AAPL @ $30.00
> Assets:Broker 1 AAPL {$30.00}
> Expenses:Broker:Commissions $19.95
> Assets:Broker $-1,519.95
>
> but this does
>
> 2004/05/01 Stock purchase
> Assets:Broker 50 AAPL @ $30.00 ;; <- joining
> posting
> Expenses:Broker:Commissions $19.95
> Assets:Broker $-1,519.95
>
>
> Is this behavior expected? If I'm wrong, could you point me to the
> appropriate documentation for me to understand?
--
---
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 visit
https://groups.google.com/d/msgid/ledger-cli/2d63d60a-581a-4cc5-a94a-187aeef00368n%40googlegroups.com.