Loss reported as profit

87 views
Skip to first unread message

Andrew Chiw

unread,
Feb 2, 2021, 8:10:49 AM2/2/21
to Beancount
I followed the Beancount getting started guide, and made transactions from my bank account to my different categories like this:

2019-01-24 * "Employer" "Invoice 23"
  Income:DE:Salary
  Assets:Bank  2000 EUR

2019-01-02 * "Stromio GmbH" "ABSCHLAG Strom"
  Assets:Bank  -87.0 EUR
  Expenses:Core:Electricity

However, if I saved money from my income, fava reports a negative "net profit", and if I used more than I got, fava says I have a positive "net profit". Am I doing things wrong somehow?
Thanks,
Andrew

Martin Blais

unread,
Feb 2, 2021, 8:26:54 AM2/2/21
to Beancount
One important design decision in beancount (an idea borrowed from Ledger originally) is to do away with credit accounts and debit accounts. Income, liabilities and equity accounts all normally have negative signs, so that is correct. (It's a bit like programmers counting from zero and not one).

See the a section in the documentation about this.


--
You received this message because you are subscribed to the Google Groups "Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/b5c42a27-fe2a-49e5-82d0-f127303e47dbn%40googlegroups.com.

Andreas Gerstmayr

unread,
Feb 26, 2021, 7:47:14 AM2/26/21
to bean...@googlegroups.com, Martin Blais
I also didn't like seeing my net profit as negative (even though it's
positive), so I added an option to fava to flip the sign of the Income,
Liabilities and Equity accounts: https://github.com/beancount/fava/pull/1214

Keep in mind though that it will only flip the signs in the user
interface though, and won't change anything with the internal beancount
accounting.


Cheers,
Andreas


Am 02.02.21 um 14:26 schrieb Martin Blais:
> <mailto:beancount+...@googlegroups.com>.
> <https://groups.google.com/d/msgid/beancount/b5c42a27-fe2a-49e5-82d0-f127303e47dbn%40googlegroups.com?utm_medium=email&utm_source=footer>.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Beancount" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to beancount+...@googlegroups.com
> <mailto:beancount+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beancount/CAK21%2BhP%2BVLF3%2Bmys39JHM3RdS9%2B%2BWnxW3QQ9-A7NusMKfkqKkw%40mail.gmail.com
> <https://groups.google.com/d/msgid/beancount/CAK21%2BhP%2BVLF3%2Bmys39JHM3RdS9%2B%2BWnxW3QQ9-A7NusMKfkqKkw%40mail.gmail.com?utm_medium=email&utm_source=footer>.

Tono Riesco

unread,
Feb 26, 2021, 8:56:54 AM2/26/21
to Martin Blais, bean...@googlegroups.com
Hi Andreas,

Thank you very much for your patch. I’ve been looking for that for a long time.
Could please be so kind to explain how to apply to the present fava package (1.18)? If I try "pip3 install —upgrade fava" doesn’t work because hasn’t been commit to the main version ...


Best regards.

Tono.

To unsubscribe from this group and stop receiving emails from it, send an email to beancount+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/08330cbb-26fc-bf7d-6796-5963b07d644e%40gerstmayr.me.

Andreas Gerstmayr

unread,
Feb 28, 2021, 2:43:44 PM2/28/21
to bean...@googlegroups.com, Tono Riesco, Martin Blais
Hi Tono,

the change was merged in master yesterday. You can install the latest
development version of fava with:

pip3 install git+https://github.com/beancount/fava.git

or you wait until a new fava version is released.


Cheers,
Andreas


Am 26.02.21 um 14:56 schrieb Tono Riesco:
> https://groups.google.com/d/msgid/beancount/7fb0083e-53cc-4790-869c-003a4a714e6d%40Spark
> <https://groups.google.com/d/msgid/beancount/7fb0083e-53cc-4790-869c-003a4a714e6d%40Spark?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages