Re: [Ledger-discuss] Average balance & Format Strings
Brought to you by:
jwiegley
From: <car...@gm...> - 2007-02-16 14:54:42
|
Hi, I discovered the solution for the second question. It was my fault. The syntax I was using was wrong. The correct is: ledger --format "%........" reg The " " was missing. I still don't have a solution for the first question. Thanks Carlos On 2/16/07, Carlos S=E3o Paulo <car...@gm...> wrote: > 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 $6= 11.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 > |