Interest is taken from Assets, that's wrong

75 views
Skip to first unread message

Gerhard Butscher

unread,
Jul 19, 2019, 8:30:18 AM7/19/19
to Ledger
2015/07/17 * WoGeno München
    Assets:WoGeno        30000.00 EUR
    Assets:Checking

2015/07/29 * WoGeno München
    Assets:Checking     914.15 EUR
    Income:WoGeno:Zinsen

etc.

gerhardb@gerhard-pc:~/Dokumente$ ledger -f myledger.txt bal WoGeno
        30000.00 EUR  Assets:WoGeno
        -5273.49 EUR  Income:WoGeno:Zinsen
--------------------
        24726.51 EUR

With this in my ledger file and with the given ledger command the interest (Zinsen) ist subtracted from assets which is wrong. I probably should name my accounts differently?

Sincerely,
Gerhard

o1bigtenor

unread,
Jul 19, 2019, 8:44:54 AM7/19/19
to ledge...@googlegroups.com
Greetings

When I track all my income deductions (taxes, other employment
deductions or Zinzen in your case) I use something like:

2015/07/29 WoGene Muenchen
Income: WoGene: salary Euro -1234.56
(This number is the gross number)
Expense: WoGene: Zinzen Euro 275.32
Expense: WoGene: Krankenkasse Euro 456.32
Asset: BankkontoChecking1 Euro - 502.92
(This number is the actual amount deposited)

I have an expense account for every type of payroll deduction.
This way I can track the amount of all my payroll deductions easily.

HTH

Gerhard Butscher

unread,
Jul 19, 2019, 10:19:45 AM7/19/19
to Ledger
I forgot to mention that when I do
ledger -f myledger.txt bal
that is without "WoGeno" then the income ist correctly under "Income" and the assets stay at 30000.
What I wanted to say is that the Description WoGeno München is used for Assets as well as for Income and ledger seems to see that as one account when issuing the ledger bal WoGeno command.

Martin Michlmayr

unread,
Jul 19, 2019, 10:38:47 AM7/19/19
to ledge...@googlegroups.com
* Gerhard Butscher <gerhard....@gmx.de> [2019-07-19 07:19]:
> I forgot to mention that when I do
> ledger -f myledger.txt bal
> that is without "WoGeno" then the income ist correctly under "Income" and
> the assets stay at 30000.
> What I wanted to say is that the Description WoGeno München is used for
> Assets as well as for Income and ledger seems to see that as one account
> when issuing the ledger bal WoGeno command.

It's not one account. If you look at the balance report you posted,
there are two accounts. ledger will also display the total.

'bal WoGeno' will match all accounts that contain WoGeno. This
includes your Assets:WoGeno accout as well as your
Income:WoGeno:Zinsen account.

If you only want to see your asset account, do 'bal Assets:WoGeno'

BTW, I don't think it makes sense to put the bank name into income
account names like Income:WoGeno:Zinsen. Just call it Income:Zinsen.
If you want to limit a query to show only Income:Zinsen received at
WoGeno, you can do:

bal Income:Zinsen -l "any(account =~ /WeGeno/)"

--
Martin Michlmayr
https://www.cyrius.com/

Gerhard Butscher

unread,
Jul 19, 2019, 10:50:11 AM7/19/19
to Ledger
If you only want to see your asset account, do 'bal Assets:WoGeno'

 That's probably what makes most sense. The command 'bal WoGeno' simply doesn't make sense. Maybe I thought ledger would give me magically a new insight in my finances.
Thank you all.

o1bigtenor

unread,
Jul 19, 2019, 12:38:55 PM7/19/19
to ledge...@googlegroups.com
https://www.ebay.ca/itm/New-Holland-H7460-H7560-Discbine-Mower-Conditioner-Operators-Manual-/161073905005
On Fri, Jul 19, 2019 at 9:38 AM Martin Michlmayr <t...@cyrius.com> wrote:
>
> * Gerhard Butscher <gerhard....@gmx.de> [2019-07-19 07:19]:
> > I forgot to mention that when I do
> > ledger -f myledger.txt bal
> > that is without "WoGeno" then the income ist correctly under "Income" and
> > the assets stay at 30000.
> > What I wanted to say is that the Description WoGeno München is used for
> > Assets as well as for Income and ledger seems to see that as one account
> > when issuing the ledger bal WoGeno command.
>https://www.ebay.ca/itm/New-Holland-H7460-H7560-Discbine-Mower-Conditioner-Operators-Manual-/161073905005
> It's not one account. If you look at the balance report you posted,
> there are two accounts. ledger will also display the total.
>
> 'bal WoGeno' will match all accounts that contain WoGeno. This
> includes your Assets:WoGeno accout as well as your
> Income:WoGeno:Zinsen account.
>
> If you only want to see your asset account, do 'bal Assets:WoGeno'
>
> BTW, I don't think it makes sense to put the bank name into income
> account names like Income:WoGeno:Zinsen. Just call it Income:Zinsen.
> If you want to limit a query to show only Income:Zinsen received at
> WoGeno, you can do:
>
> bal Income:Zinsen -l "any(account =~ /WeGeno/)"

Method makes sense and is reasonably accurate but it would make sense
to the greatest extent if you only ever had one employer.
Now if you were a consultant and worked for even 2 different firms in a
year the method that I'm espousing shows more accurately what and where.

I use account numbers for all my accounts (as well as names).
Because I really really like knowing where and when things happen to my
money - - - - I use the added granularity even when it comes at the expense
of added effort.

I realize I'm a pedant - - - but when it comes to money - - - - well
the government
boffins that have the right to inspect my work - - - - let's just say
that they demand
exactly the whens and wheres and the whys and they get right troubled when
the answers are not immediate.

Regards

Martin Michlmayr

unread,
Aug 31, 2019, 3:06:15 PM8/31/19
to ledge...@googlegroups.com
* o1bigtenor <o1big...@gmail.com> [2019-07-19 11:38]:
> > bal Income:Zinsen -l "any(account =~ /WeGeno/)"
>
> Method makes sense and is reasonably accurate but it would make sense
> to the greatest extent if you only ever had one employer.
> Now if you were a consultant and worked for even 2 different firms in a
> year the method that I'm espousing shows more accurately what and where.

I think this is just a matter of taste where people disagree. You
prefer to put the name in the account name. I prefer to keep simple
account names and instead store such information as metadata.

Maybe my queries become slightly more complicated:

reg income:contracting -l "tag('Client') =~ /Foo/"
vs
reg income:contracting:Foo

but I prefer a simple chart of accounts (as do most professional
accountants, who unlike us geeks, don't care about that level of
detail, at least not in the chart of accounts).

o1bigtenor

unread,
Aug 31, 2019, 10:58:14 PM8/31/19
to ledge...@googlegroups.com
Ah ja - - - - I sit chastised (grin!) - - - - as my list of accounts (with some
descriptions but not that many) runs to about 30 pages of text - - - - but then
I can tell you exactly what something costs me - - - - do I want to do the
plumbing in pvc or steel or brass (more likely bronze) and why? I can
answer those questions - - - - few others can. I've always been weird! (LOL)

Re: accountants - - - - they just want to get the job done - - - - me
the information
itself has value to me - - - - you're very correct - - - it is a very
different way to see
things.

Regards
Reply all
Reply to author
Forward
0 new messages