[Ledger-discuss] Average balance
Brought to you by:
jwiegley
|
From: <car...@gm...> - 2007-01-23 16:02:52
|
Hello,
Why the command "ledger -A -s bal carro" generate correct average
values for the children accounts but generates half of I expected
value for the parents accounts.
Example:
The result of the command "ledger -A reg carro"
2007/01/10 ar do carro 3/3 despesas:carro:oficina $611.58 $611.58
2007/01/17 gasolina despesas:carro:gasol.. $97.00
$354.29
2007/01/19 despesas despesas:carro:estac.. $9.00
$239.19
2007/01/21 despesas despesas:carro:estac.. $3.00
$180.15
So, I understand that $180.15 is the correct average value for the
account despesas:carro.
Now, the result of the command "ledger -A -s bal carro"
$90.07 despesas:carro
$6.00 estacionamento
$97.00 gasolina
$611.58 oficina
--------------------
$90.07
$90.07 is half of $180.17 which is what I expected as correct result.
Can some one, please, explain me this result.
Thanks a lot
Carlos
|