;---------------------------------------------------------------------- ; ledger2beancount conversion notes: ; ; - hledger's total balance assertions not supported; using regular assertion ; - Account assets:checking renamed to Assets:Checking ; - Account expenses:food renamed to Expenses:Food ; - Metadata key 2012 renamed to x2012 ; - Metadata key 2012foo renamed to x2012foo ; - Metadata key TEST1234TEST renamed to test1234test ; - Metadata key abc,def renamed to abc-def ; - Metadata key foo,bar renamed to foo-bar ; - Metadata key test♚ renamed to test- ; - Collision for account Assets:Checking: Assets:Checking, assets:checking ; - Collision for commodity GBP: GBP, £ ;---------------------------------------------------------------------- ; SPDX-FileCopyrightText: © 2019 Martin Michlmayr ; ; SPDX-License-Identifier: GPL-3.0-or-later 1970-01-01 open Assets:A ; foo ; Payee and narration 1970-01-01 open Assets:B 1970-01-01 open Assets:Bank 1970-01-01 open Assets:Bank:Wells-Fargo:Checking 1970-01-01 open Assets:Checking 1970-01-01 open Assets:Checking:A 1970-01-01 open Assets:Checking:B 1970-01-01 open Assets:Test 1970-01-01 open Assets:USD 1970-01-01 open Assets:Wells-Fargo-Checking 1970-01-01 open Equity:Opening-Balances 1970-01-01 open Expenses:Food 1970-01-01 commodity BTC 1970-01-01 commodity EUR 1970-01-01 commodity GBP 1970-01-01 commodity PLN 1970-01-01 commodity USD 2015-05-30 txn "foo" "bar" Assets:A 10.00 EUR Assets:B -10.00 EUR 2015-05-30 txn "foo" "bar" Assets:A 10.00 EUR Assets:B -10.00 EUR 2015-05-30 txn "foo" "bar" Assets:A 10.00 EUR Assets:B -10.00 EUR 2015-05-30 txn "foo" "bar | baz" Assets:A 10.00 EUR Assets:B -10.00 EUR ; Posting level dates as comments 2015-05-30 txn "date as comment" Expenses:Food 10 USD ; food purchased on saturday 05/30 Assets:Checking ; bank cleared it on monday date: 2005-06-01 2015-05-30 txn "date as comment without year" Expenses:Food 10 USD ; food purchased on saturday 05/30 Assets:Checking ; bank cleared it on monday date: 2015-06-01 2015-05-30 txn "date2 as comment" Expenses:Food 10 USD ; food purchased on saturday 05/30 Assets:Checking ; bank cleared it on monday aux-date: 2005-06-02 2015-05-30 txn "date and date2 as comment" Expenses:Food 10 USD ; food purchased on saturday 05/30 Assets:Checking ; bank cleared it on monday date: 2005-06-01 aux-date: 2005-06-02 2015-05-30 txn "date and date2 as comment, in reverse order" Expenses:Food 10 USD ; food purchased on saturday 05/30 Assets:Checking ; bank cleared it on monday aux-date: 2005-06-02 date: 2005-06-01 2015-05-30 txn "date and date2 on next line" aux-date: 2005-06-02 date: 2005-06-01 ; bank cleared it on monday. Expenses:Food 10 USD Assets:Checking 2015-05-30 txn "date and date2 on next line" Expenses:Food 10 USD aux-date: 2005-06-02 date: 2005-06-01 ; bank cleared it on monday. Assets:Checking 2015-05-30 txn "date and date2 on next line" Expenses:Food 10 USD Assets:Checking aux-date: 2005-06-02 date: 2005-06-01 ; bank cleared it on monday. ; Tags 2019-01-28 txn "Tag test" #sometag #foo #bar Assets:A 10.00 EUR Assets:B 2019-01-28 txn "Tag test" #sometag #foo #bar Assets:A 10.00 EUR Assets:B 2019-01-28 txn "ledger tag" ; : tag1: "tag2:" Assets:A 10.00 EUR Assets:B 2019-01-28 txn "Tag test" #foo #bar sometag: "foo" Assets:A 10.00 EUR Assets:B 2019-01-28 txn "Tag test" #bar sometag: "this is a value" foo: "another value" Assets:A 10.00 EUR Assets:B 2019-01-28 txn "Tag test" #tag1 ; a comment containing tag2: "some value ..." Assets:A 10.00 EUR Assets:B 2019-01-28 txn "Tag test" #bar sometag: "this is a value" foo: "another value" test-: "foo" Assets:A 10.00 EUR test1234test: "foo" test-: "foo" x2012: "foo" x2012foo: "foo" Assets:B 2019-01-28 txn "Tag test" Assets:A 10.00 EUR tags: "sometag, foo, bar" Assets:B 2019-01-28 txn "Tag test" Assets:A 10.00 EUR sometag: "foo" tags: "foo, bar" Assets:B 2020-06-24 txn "Comment" Assets:A 10.00 EUR ;This is a comment which ends with a comma, Assets:B 2020-07-26 txn "Tag test" #foo bar: "test" Assets:Test 10 USD Assets:Test 2020-07-26 txn "Tag test" #foo bar: "test" Assets:Test 10 USD Assets:Test 2020-07-26 txn "Tag test" bar: "test" #foo Assets:Test 10 USD Assets:Test 2020-07-26 txn "Tag test" foo-bar: "test" Assets:Test 10 USD Assets:Test 2020-07-26 txn "Tag test" foo: "bar: test" abc-def: "ghi" Assets:Test 10 USD Assets:Test 2020-07-26 txn "Tag test" bar: "foo:" Assets:Test 10 USD Assets:Test 2020-07-26 txn "Decimal mark with period" Assets:Test 1.23456780000009 BTC Assets:Test 2020-07-26 txn "Decimal mark with comma" Assets:Test 1.23456780000009 BTC Assets:Test 2020-07-26 txn "Thousand" Assets:Test 1,000.00 EUR Assets:Test 2020-07-27 txn "Alias" Assets:Bank 10.00 EUR Assets:Bank 2020-07-27 txn "No alias" Assets:Test 10.00 EUR Assets:Test 2020-07-27 txn "Alias" Assets:Bank 10.00 EUR Assets:Bank 2020-07-27 txn "No alias" Assets:Test 10.00 EUR Assets:Test 2020-07-26 txn "Alias" Assets:Bank 10.00 EUR Assets:Bank 2020-07-26 txn "Alias" Assets:Wells-Fargo-Checking 10.00 USD Assets:Bank 2020-07-26 txn "No alias" Assets:Test 10.00 EUR Assets:Test 2020-07-26 * "Sub-account assertion 1" Assets:Checking:A 5 EUR Assets:Checking:B 5 EUR Assets:Checking 1 EUR Equity:Opening-Balances 2020-07-27 balance Assets:Checking 11 EUR 2020-07-27 * "Sub-account assertion 2" Assets:Checking:A 5 EUR Assets:Checking:B 5 EUR Assets:Checking 1 EUR ; comment Equity:Opening-Balances 2020-07-28 balance Assets:Checking 22 EUR 2020-07-28 * "Sub-account assertion 3" Assets:Checking:A 5 EUR Assets:Checking:B 5 EUR Assets:Checking 1 EUR Equity:Opening-Balances 2020-07-29 balance Assets:Checking 33 EUR 2020-07-29 * "Sub-account assertion 4" Assets:Checking:A 5 EUR Assets:Checking:B 5 EUR Assets:Checking 1 EUR ; comment Equity:Opening-Balances 2020-07-30 balance Assets:Checking 44 EUR 2020-07-26 txn "USD opening balance" Assets:USD 1 USD Assets:Test 2020-07-26 note Assets:USD "Check USD balance" 2020-07-27 balance Assets:USD 1 USD 1970-01-01 commodity BRL 1970-01-01 commodity JPY ;comment 1970-01-01 commodity CZK 1970-01-01 commodity HUF ;comment 1970-01-01 commodity ILS 2020-07-27 txn "Two million" Assets:Test 2000000.00 ILS Assets:Test 2020-07-27 txn "Thousand" Assets:Test 1000 ILS Assets:Test 1970-01-01 commodity INR 2020-07-27 txn "Format currently not allowed" Assets:Test 99999999.00 INR Assets:Test 1970-01-01 commodity NOK 2020-07-27 txn "Space" Assets:Test 1234567 NOK Assets:Test 2020-07-27 txn "One" Assets:Test 1.000 NOK Assets:Test 1970-01-01 commodity FOO 2020-07-27 txn "Space" Assets:Test 1000.9455 FOO Assets:Test 2020-07-27 txn "Space" Assets:Test 1000000.9455 FOO Assets:Test ; D 1.000,00 zł 2020-07-27 txn "Thousand" Assets:Test 1000 PLN Assets:Test 2020-10-08 txn "Tag test" foo: "bar" Assets:Test 10 USD Assets:Test 2020-10-08 txn "Tag test" foo: "bar" test: "bar" Assets:Test 10 USD Assets:Test 2020-10-08 txn "Tag test" foo: "bar" #bar Assets:Test 10 USD Assets:Test 2020-10-08 txn "Tag test" foo: "bar" aux-date: 2020-10-05 Assets:Test 10 USD Assets:Test 2020-10-08 txn "Tag test" foo: "bar" aux-date: 2020-10-05 test: "bar" Assets:Test 10 USD Assets:Test 2020-10-08 txn "Tag test" foo: "bar" aux-date: 2020-10-05 #bar Assets:Test 10 USD Assets:Test 2020-10-13 txn "No commodity: zł (from earlier)" Assets:Test 1000 PLN Assets:Test ; D £1,000.00 2020-10-13 txn "No commodity: £ now" Assets:Test 1000.00 GBP Assets:Test ; No payee information 2020-10-13 txn "" Assets:Test 10.00 EUR Assets:Test 2021-04-14 * "Balance assertion without commodity" Equity:Opening-Balances Assets:Checking:A 5 GBP Assets:Checking:B 5 GBP Assets:Checking 1 GBP 2021-04-15 balance Assets:Checking 11 GBP ; D 1.000,00 EUR 2022-08-04 txn "Decimal comma with default commodity" Assets:Test 1.00 EUR Assets:Test 2022-08-04 txn "Decimal comma with default commodity" Assets:Test 1000.00 EUR Assets:Test ; D 1000. GBP 2022-08-04 txn "Amount with decimal separator but no fractional part" Assets:Test 1. GBP Assets:Test 2022-08-04 txn "Amount with decimal separator but no fractional part" Assets:Test 1. GBP Assets:Test ; D 1.000, EUR 2022-08-04 txn "Amount with decimal separator but no fractional part" Assets:Test 1. EUR Assets:Test 2022-08-04 txn "Amount with decimal separator but no fractional part" Assets:Test 1. EUR Assets:Test