emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accounting


From: Uwe Brauer
Subject: Re: accounting
Date: Mon, 04 Jan 2021 21:01:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

>>> "ESF" == Eric S Fraga <e.fraga@ucl.ac.uk> writes:

   > On Monday,  4 Jan 2021 at 13:43, Uwe Brauer wrote:
   >> The example in this link is ok, also the output (the result of the
   >> ledger operation) is not very nicely formatted.

   > ledger does allow you to control, in detail, how the output should be
   > formatted.  The default output is suitable for a console display but you
   > can modify this through appropriate arguments to the ledger command line
   > via babel.  For instance, I have this line in my org file for generating
   > a balance of my assets:

   > ,#+call: year2020[:cmdline -V --format "%-20A %14T\n" bal --flat assets ]()


I am not sure I understand this (I admit I never used ledger, I used for
some time gnucash)

Do you mean this?

#+call: allinone[:cmdline -V --format "%-20A %14T\n" bal --flat assets ]()
#+name: allinone
#+begin_src ledger
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
2010/07/23 Rent
  expenses:rent  250.00
  assets:bank:chequing
2010/07/24 Food
  expenses:food  150.00
  assets:bank:chequing
2010/07/31 * Interest on bank savings
  assets:bank:savings  3.53
  income:interest
2010/07/31 * Transfer savings
  assets:bank:savings  250.00
  assets:bank:chequing
2010/08/01 got paid again
  assets:bank:chequing  1000.00
  income:salary
#+end_src


Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]