Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
riclage committed Mar 25, 2019
1 parent ed3b346 commit 72904f2
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ A typical mapping file might look like:
/MACY'S/,"Macy's, Inc.",Expenses:Food
MY COMPANY 1234,My Company,Income:Salary
MY COMPANY 1234,My Company 1234,Income:Salary:Tips
MY TRANSFER 1,Transfer to Savings,Transfers:Savings,transfer_to=Assets:Savings

It uses simple string-matching by default, but if you put a '/' at the
start and end of a string it will instead be interpreted as a regular
Expand All @@ -438,6 +439,24 @@ Mapping is based on your historical decisions. Later matching entries
overwrite earlier ones, that is in example above `MY COMPANY 1234` will
be mapped to `My Company 1234` and `Income:Salary:Tips`.

**Experimental**
You can use `transfer_to=` to another asset to make the transfer to record in a "transfer"
double-entry pattern.
In the example above for the Transfers:Savings account with the transfer_to=Assets:Savings
would create the following entries:

2012/01/01 Transfer to Savings
Transfers:Savings $100
Assets:Checking

2012/01/01 Transfer to Savings
Assets:Savings $100
Transfers:Savings

You can additionally add a `file=` value after `transfer_to=` to write the second entry in another file.
This is useful if you split your accounts per file and want to write the first transaction in the checking file
and the second in the savings file.

Accounts File
--------------

Expand Down

0 comments on commit 72904f2

Please sign in to comment.