From 0520f21e49656a83dc6de4c89d71e196d5d133d2 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 14 Apr 2013 18:14:27 -0700 Subject: [PATCH] docs: more csv conversion tips --- MANUAL.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/MANUAL.md b/MANUAL.md index bb04bfdd5..723315993 100644 --- a/MANUAL.md +++ b/MANUAL.md @@ -417,7 +417,7 @@ For an example, see [How to use account aliases](ALIASES.html). hledger can also read [CSV](http://en.wikipedia.org/wiki/Comma-separated_values) files, -translating the CSV records into journal entries on the fly. +translating the CSV records into journal entries on the fly. We must provide some some conversion hints in a "rules file", named like the CSV file with an extra `.rules` suffix (you can choose another name with `--rules-file`). @@ -486,9 +486,15 @@ The following kinds of rule can appear in any order: Typically you'll keep one rules file for each account which you download as CSV. For an example, see [How to read CSV files](CSV.html). -Other features: +Other notes: -A CSV amount value that is parenthesised will have the parentheses stripped and its sign flipped. +An amount value that is parenthesised will have the parentheses stripped and its sign flipped. + +If the `currency` pseudo field is assigned, its value will be prepended to every amount. + +If the CSV has debit/credit amounts in separate fields, assign the `amount-in` and `amount-out` pseudo fields instead of `amount`. + +Generating entries with three or more postings is not supported at present. ### Timelog files