diff options
author | John Wiegley <johnw@newartisans.com> | 2003-10-01 21:55:40 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2003-10-01 21:55:40 +0000 |
commit | 7ce12f8cfe0beaecea3de7e073aa3c9751742a5d (patch) | |
tree | a2681c82ede5e0edc1dc7c0e39f40239762244c9 /ledger.texi | |
parent | c7e1cf34b393d98cda4d270cc3e431b9a7909fa7 (diff) | |
download | fork-ledger-7ce12f8cfe0beaecea3de7e073aa3c9751742a5d.tar.gz fork-ledger-7ce12f8cfe0beaecea3de7e073aa3c9751742a5d.tar.bz2 fork-ledger-7ce12f8cfe0beaecea3de7e073aa3c9751742a5d.zip |
*** empty log message ***
Diffstat (limited to 'ledger.texi')
-rw-r--r-- | ledger.texi | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/ledger.texi b/ledger.texi index cb180eb0..8e1f2d8b 100644 --- a/ledger.texi +++ b/ledger.texi @@ -1,5 +1,5 @@ \input texinfo @c -*-texinfo-*- -@comment $Id: ledger.texi,v 1.4 2003/10/01 04:42:13 johnw Exp $ +@comment $Id: ledger.texi,v 1.5 2003/10/01 21:55:40 johnw Exp $ @comment %**start of header @setfilename ledger.info @@ -287,6 +287,47 @@ Euro=DM 0.75 This is a roundabout way of reporting AAPL shares in their Deutsch Mark equivalent. +@section Accounts and Inventories + +Since @code{ledger}'s accounts and commodity system is so flexible, +you can have accounts that don't really exist, and use commodities +that no one else recognizes. For example, let's say you are buying +and selling various items in EverQuest, and want to keep track of them +using a ledger. Just add items of whatever quantity you wish into +your EverQuest account: + +@example +9/29 Get some stuff at the Inn + Places:Black's Tavern -3 Apples + Places:Black's Tavern -5 Steaks + EverQuest:Inventory +@end example + +Now your EverQuest:Inventory has 3 apples and 5 steaks in it. The +amounts are negative, because you are taking @emph{from} Black's +Tavern in order to credit your Inventory account. Note that you don't +have to use ``Places:Black's Tavern'' as the source account. You +could use ``EverQuest:System'' to represent the fact that you acquired +them online. The only purpose for choosing one kind of source account +over another is for generate more informative reports later on. The +more you know, the better analysis you can perform. + +If you later sell some of these items to another player, the entry +would look like: + +@example +10/2 Sturm Brightblade + EverQuest:Inventory -2 Steaks + EverQuest:Inventory 15 Gold +@end example + +Now you've turned 2 steaks into 15 gold, courtesy of your customer, +Sturm Brightblade. + +Note that if you're playing on a system where ``Gold'' is the standard +currency, you should use the @samp{-D} flag to tell @code{ledger} that +that is the default commodity. + @chapter Using @code{ledger} @chapter Computing Huqúqu'lláh |