From 09f17f2b2b7e468308dd5fc6aa0b7682aa34b980 Mon Sep 17 00:00:00 2001 From: Dmitry Astapov Date: Sat, 19 Oct 2019 01:30:18 +0100 Subject: [PATCH] doc: mention the magic sauce --- hledger-lib/hledger_csv.m4.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hledger-lib/hledger_csv.m4.md b/hledger-lib/hledger_csv.m4.md index e3ca6fc39..4055c857f 100644 --- a/hledger-lib/hledger_csv.m4.md +++ b/hledger-lib/hledger_csv.m4.md @@ -154,6 +154,8 @@ Eg: fields date, description, , amount1, , , somefield, anotherfield ``` +For backwards compatibility, we treat posting 1 specially. If your rules generated just posting 1, another posting would be added to your transaction to balance it. If your rules generated posting 1 and posting 2, but amount in the posting 2 is empty, hledger will fill it out with the opposite of posting 1. This special handling is needed to ensure smooth upgrade path from version 1.15. + ## field assignment *`ENTRYFIELDNAME`* *`FIELDVALUE`*