Skip to content

Commit

Permalink
Set option name_income for top-level account Revenue
Browse files Browse the repository at this point in the history
Fixes #255
  • Loading branch information
tbm committed Sep 21, 2021
1 parent db679b9 commit 8be8a8c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .aspell.en.pws
@@ -1,4 +1,4 @@
personal_ws-1.1 en 78 utf-8
personal_ws-1.1 en 80 utf-8
AUR
Alen
Baier
Expand All @@ -13,10 +13,12 @@ Goncharov
Homebrew
JPY
Jelmer
Kaleem
Kirill
Kurup
MERCHANTABILITY
Michlmayr
Mohsin
NetBSD
Nicolodi
PWD
Expand Down
2 changes: 2 additions & 0 deletions bin/ledger2beancount
Expand Up @@ -177,6 +177,8 @@ my %root_mappings = (
qr/Καθαρή θέση/ => "equity",
qr/Έσοδα/ => "income",
qr/Έξοδα/ => "expenses",
# en - English
qr/Revenues?/ => "income",
# es - Spanish
qr/Activos?/ => "assets",
qr/Pasivos?/ => "liabilities",
Expand Down
1 change: 1 addition & 0 deletions docs/authors.md
Expand Up @@ -24,6 +24,7 @@ We have also had contributions and input from:
* Kirill Goncharov (bug reports; package for Arch Linux)
* Marin Bernard (bug reports)
* Martin Blais (help with compatibility with beancount)
* Mohsin Kaleem (bug reports)
* Remco Rijnders (feedback)
* Simon Michael (bug reports; fixes; help with compatibility with hledger)
* Taylor R. Campbell (package for pkgsrc)
Expand Down
1 change: 1 addition & 0 deletions docs/changelog.md
Expand Up @@ -4,6 +4,7 @@

* Improve pre-processing example in documentation
* Add support for amounts with plus sign
* Set option `name_income` for top-level account `Revenue`

## 2.6 (2021-04-15)

Expand Down
6 changes: 4 additions & 2 deletions tests/accounts.beancount
Expand Up @@ -4,7 +4,7 @@
; - Skipped second account declaration for Expenses:Travel (old Expenses:Bar:Travel)
; - Virtual posting in parentheses ignored
; - Account Revenue not allowed; it needs a sub-account, e.g. Revenue:Subaccount
; - Non-standard root name Revenue used; please set beancount options name_*
; - Non-standard root name Revenue used; setting beancount option name_income
; - Skipped second account declaration for Expenses:Food (old Expenses:Food)
; - Account Accrued:Accounts Payable:Baz renamed to Liabilities:Accounts-Payable:Baz
; - Account Assets:Bank Debian)bar renamed to Assets:Bank-Debian-bar
Expand All @@ -28,9 +28,11 @@
;----------------------------------------------------------------------


option "title" "Test account names"
option "name_income" "Revenue"


option "title" "Test account names"

; Beancount: 2.1.0

; SPDX-FileCopyrightText: © 2018 Martin Michlmayr <tbm@cyrius.com>
Expand Down
1 change: 0 additions & 1 deletion tests/accounts.header
@@ -1,4 +1,3 @@

option "title" "Test account names"
option "name_income" "Revenue"

0 comments on commit 8be8a8c

Please sign in to comment.