[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: accounting
From: |
Uwe Brauer |
Subject: |
Re: accounting |
Date: |
Tue, 05 Jan 2021 16:35:06 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> On Monday, 4 Jan 2021 at 21:01, Uwe Brauer wrote:
> Yes.
> Sorry I was brief: I cut and pasted something from one of my files while
> in a rush!
> Basically, you could do:
> #+begin_src ledger :cmdline -V --format "%-20A %14T\n" bal --flat assets
> 2010/01/01 * Starting balance
> assets:bank:savings 1300.00
> income:starting balances
> 2010/07/22 * Got paid
> assets:bank:chequing 1000.00
> income:salary
> #+end_src
> and you would get, as output,
> #+results:
> : assets:bank:chequing 1000
> : assets:bank:savings 1300
> : 2300
Thanks. I figured out that I have to read a bit accounting again (I
don't want to use gnucash again, I prefer an org solution). I think
ledger is a reasonable solution (I cannot install currently beancount)
> I'm not saying that this is much prettier than the default but simply
> that you have total control over the formatting of the output so you may
> be able to achieve what you wish.
Yeah, your solution does not work for the example I had in mind
but I realize now what I miss: the output should be an org table
#+name: test
#+begin_src ledger
2010/01/01 * Starting balance
assets:bank:savings 0
income:starting balances
2010/07/23 ChristmasTree
expenses:Brother:ChristmasTree 40.00
income:Brother:Card
2010/07/24 Jacket
expenses:BigBrother:Jacket 150.00
income:BigBrother:Card
2010/07/24 Schuhe
expenses:BigBrother:Shoes 20
income:BigBrother:Card
2010/07/23 BigBrother
expenses:Brother:BigBrother 130
income:Brother:Card
#+end_src
#+RESULTS: test
#+begin_example
340 expenses
170 BigBrother
150 Jacket
20 Shoes
170 Brother
130 BigBrother
40 ChristmasTree
-340 income
-170 BigBrother:Card
-170 Brother:Card
--------------------
0
#+end_example
But I rather prefer to have
| 340 | expenses | | |
| 170 | | BigBrother | |
| 150 | | | Jacket |
| 20 | | | Shoes |
| 170 | | Brother | |
| 130 | | | BigBrother |
| 40 | | | ChristmasTree |
| -340 | income | | |
| -170 | | BigBrother:Card | |
| -170 | | Brother:Card | |
| | | | |
|------+----------+-----------------+---------------|
| 0 | | | |
Any idea how to achieve this?
smime.p7s
Description: S/MIME cryptographic signature
- accounting, Uwe Brauer, 2021/01/04
- Re: accounting, Eric S Fraga, 2021/01/04
- Re: accounting, Dr. Arne Babenhauserheide, 2021/01/04
- Re: accounting, Uwe Brauer, 2021/01/04
- Re: accounting, Eric S Fraga, 2021/01/04
- Re: accounting, Uwe Brauer, 2021/01/04
- Message not available
- Re: accounting,
Uwe Brauer <=
- [A solution of sorts] (was: accounting), Uwe Brauer, 2021/01/05
- Re: [A solution of sorts], Eric S Fraga, 2021/01/05
- Re: [A solution of sorts], Uwe Brauer, 2021/01/06
- Re: accounting, Eric S Fraga, 2021/01/05
- Re: accounting, Ihor Radchenko, 2021/01/05
Re: accounting, Daniele Nicolodi, 2021/01/04