-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(reconcile): handle balance and price entries in the ignored journ…
…al file Thanks to @Zburatorul for reporting. Fixes #49
- Loading branch information
Showing
14 changed files
with
84 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
testdata/reconcile/test_ofx_ignore_balance/0/candidates.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<journal-dir>/journal.beancount | ||
+ | ||
+2018-06-21 * "REINVEST - DIV" | ||
+ Assets:Retirement:Vanguard:Roth-IRA:TYCDT 31.704 TYCDT {2.94 USD} | ||
+ date: 2018-06-21 | ||
+ ofx_fitid: "7c9254b784a.a9bd.edcfa27b.b" | ||
+ ofx_type: "REINVEST" | ||
+ Income:Vanguard:Dividends:TYCDT -93.21 USD | ||
+ | ||
+2018-06-21 open Assets:Retirement:Vanguard:Roth-IRA:TYCDT TYCDT | ||
+ | ||
+2018-06-21 open Income:Vanguard:Dividends:TYCDT USD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2018-07-03 balance Assets:Retirement:Vanguard:Roth-IRA:TYCDT 46.872 TYCDT |
8 changes: 8 additions & 0 deletions
8
testdata/reconcile/test_ofx_ignore_balance/0/journal.beancount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugin "beancount.plugins.auto_accounts" | ||
|
||
1900-01-01 open Assets:Retirement:Vanguard:Roth-IRA | ||
ofx_org: "MyBank" | ||
ofx_broker_id: "MyBank" | ||
ofx_account_type: "securities_only" | ||
account_id: "123456789" | ||
div_income_account: "Income:Vanguard:Dividends" |
16 changes: 16 additions & 0 deletions
16
testdata/reconcile/test_ofx_ignore_balance/0/pending.beancount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
;; source: ofx | ||
;; date: 2018-06-21 | ||
;; info: {"filename": "<testdata>/source/ofx/vanguard_roth_ira.ofx", "type": "application/x-ofx"} | ||
|
||
2018-06-21 * "REINVEST - DIV" | ||
Assets:Retirement:Vanguard:Roth-IRA:TYCDT 31.704 TYCDT {2.94 USD} | ||
date: 2018-06-21 | ||
ofx_fitid: "7c9254b784a.a9bd.edcfa27b.b" | ||
ofx_type: "REINVEST" | ||
Income:Vanguard:Dividends:TYCDT -93.21 USD | ||
|
||
;; source: ofx | ||
;; date: 2018-07-03 | ||
;; info: null | ||
|
||
2018-07-03 price TYCDT 84.20 USD |
1 change: 1 addition & 0 deletions
1
testdata/reconcile/test_ofx_ignore_balance/0/training_examples.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
12 changes: 12 additions & 0 deletions
12
testdata/reconcile/test_ofx_ignore_price/0/candidates.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<journal-dir>/journal.beancount | ||
+ | ||
+2018-06-21 * "REINVEST - DIV" | ||
+ Assets:Retirement:Vanguard:Roth-IRA:TYCDT 31.704 TYCDT {2.94 USD} | ||
+ date: 2018-06-21 | ||
+ ofx_fitid: "7c9254b784a.a9bd.edcfa27b.b" | ||
+ ofx_type: "REINVEST" | ||
+ Income:Vanguard:Dividends:TYCDT -93.21 USD | ||
+ | ||
+2018-06-21 open Assets:Retirement:Vanguard:Roth-IRA:TYCDT TYCDT | ||
+ | ||
+2018-06-21 open Income:Vanguard:Dividends:TYCDT USD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2018-07-03 price TYCDT 84.20 USD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
plugin "beancount.plugins.auto_accounts" | ||
|
||
1900-01-01 open Assets:Retirement:Vanguard:Roth-IRA | ||
ofx_org: "MyBank" | ||
ofx_broker_id: "MyBank" | ||
ofx_account_type: "securities_only" | ||
account_id: "123456789" | ||
div_income_account: "Income:Vanguard:Dividends" |
16 changes: 16 additions & 0 deletions
16
testdata/reconcile/test_ofx_ignore_price/0/pending.beancount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
;; source: ofx | ||
;; date: 2018-06-21 | ||
;; info: {"filename": "<testdata>/source/ofx/vanguard_roth_ira.ofx", "type": "application/x-ofx"} | ||
|
||
2018-06-21 * "REINVEST - DIV" | ||
Assets:Retirement:Vanguard:Roth-IRA:TYCDT 31.704 TYCDT {2.94 USD} | ||
date: 2018-06-21 | ||
ofx_fitid: "7c9254b784a.a9bd.edcfa27b.b" | ||
ofx_type: "REINVEST" | ||
Income:Vanguard:Dividends:TYCDT -93.21 USD | ||
|
||
;; source: ofx | ||
;; date: 2018-07-03 | ||
;; info: null | ||
|
||
2018-07-03 balance Assets:Retirement:Vanguard:Roth-IRA:TYCDT 46.872 TYCDT |
1 change: 1 addition & 0 deletions
1
testdata/reconcile/test_ofx_ignore_price/0/training_examples.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[] |