[Ledger-discuss] Average balance & Format Strings
Brought to you by:
jwiegley
|
From: <car...@gm...> - 2007-02-16 13:21:16
|
Hello,
I have 2 questions.
First question
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.
Second question
I am no able to use format strings through the command line but, If I
put --format options in the file .ledgerrc everything works perfectly.
I would like to use the --format options through the command line.
My ledger version is 2.5
Thanks a lot for any help
Carlos
|