summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2013-05-20 21:36:49 +0200
committerthdox <thdox@free.fr>2013-05-20 23:23:44 +0200
commit8f127291e5236b3e903afd13b157c4fc3ade4e28 (patch)
treee32c87f503bf679d5323a438ac87d93b531313d8 /doc
parent11befb67aa211312eb5f634da9410075b95beef6 (diff)
downloadfork-ledger-8f127291e5236b3e903afd13b157c4fc3ade4e28.tar.gz
fork-ledger-8f127291e5236b3e903afd13b157c4fc3ade4e28.tar.bz2
fork-ledger-8f127291e5236b3e903afd13b157c4fc3ade4e28.zip
Add documentation for Payee metadata tag
Diffstat (limited to 'doc')
-rw-r--r--doc/ledger3.texi44
1 files changed, 43 insertions, 1 deletions
diff --git a/doc/ledger3.texi b/doc/ledger3.texi
index 68e3e669..db8fa84a 100644
--- a/doc/ledger3.texi
+++ b/doc/ledger3.texi
@@ -2717,10 +2717,52 @@ You can gang up multiple tags by sharing colons:
; :TAG1:TAG2:TAG3:
@end smallexample
+@menu
+* Payee metadata tag::
+@end menu
+
+@node Payee metadata tag, , Metadata tags, Metadata tags
+@subsubsection Payee metadata tag
+@cindex Payee metadata tag
+@findex register
+@findex payees
+@findex --by-payee
+
+``Payee'' is a special metadata field. If set on a posting, it will be
+used as the payee name for that posting. This affects the
+@command{register} report, the @command{payees} report, and the
+@option{--by-payee} option.
+
+This is useful when for example you deposit 4 checks at a time to
+the bank. On the bank statement, there is just one amount @samp{$400},
+but you can specify from whom each check came from, as shown by example below:
+
+@smallexample
+2010-06-17 Sample
+ Assets:Bank $400.00
+ Income:Check1 $-100.00 ; Payee: Person One
+ Income:Check2 $-100.00 ; Payee: Person Two
+ Income:Check3 $-100.00 ; Payee: Person Three
+ Income:Check4 $-100.00 ; Payee: Person Four
+@end smallexample
+
+When reporting this, it appears as:
+
+@smallexample
+10-Jun-17 Sample Assets:Bank $400.00 $400.00
+ Person One Income:Check1 $-100.00 $300.00
+ Person Two Income:Check2 $-100.00 $200.00
+ Person Three Income:Check3 $-100.00 $100.00
+ Person Four Income:Check4 $-100.00 0
+@end smallexample
+
+This shows that they are all in the same transaction (which is why the
+date is not repeated), but they have different payees now.
+
@node Metadata values, Typed metadata, Metadata tags, Metadata
@subsection Metadata values
-To associate a value with a tag, use the syntax "Key: Value", where
+To associate a value with a tag, use the syntax ``Key: Value'', where
the value can be any string of characters. Whitespace is needed after
the colon, and cannot appear in the Key: