Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

account directives, subdirectives, tags #217

Open
4 of 6 tasks
simonmichael opened this issue Nov 21, 2014 · 7 comments
Open
4 of 6 tasks

account directives, subdirectives, tags #217

simonmichael opened this issue Nov 21, 2014 · 7 comments
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. old:missed-1.0 Things that were scheduled for 1.0 but didn't make it. They're still hoping.

Comments

@simonmichael
Copy link
Owner

simonmichael commented Nov 21, 2014

We want to add support for an account directive like Ledger's, to:

  • increase compatibility with ledger files
  • pre-declare account names, providing guidance and optional strict checking
  • define additional per-account metadata. For example, the account type (asset, liability, expense..)

julm has got the ball rolling on this.

Related:
Chart of Accounts support #50

An actual CoA would include every account that is relevant to you, whether or not you have any entries corresponding to each account. It should also be able to contain all desired details for each account; account number, bank branch addresses, terms, rates, paper-file cross reference, tax GIFI numbers, what have you. These details should not live in specific transactions, but they should be available wherever you need them; as reference to your chosen account structure and to enhance account-specific reports.

https://trello.com/c/uvwd6M8m/102-track-account-types-metadata-50
https://factor.cc/pad/p/hledger
http://ledger-cli.org/3.0/doc/ledger3.html#Command-Directives
http://plaintextaccounting.org/quickref/#h.3v5cafffbbft

Goals:

@simonmichael simonmichael added A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. labels Nov 21, 2014
@simonmichael simonmichael changed the title account directive, account metadata support the account directive, account metadata Nov 21, 2014
@simonmichael simonmichael added this to the 1.0 milestone Nov 21, 2014
@simonmichael simonmichael changed the title support the account directive, account metadata support the account directive & account metadata May 19, 2015
@simonmichael simonmichael added the old:missed-1.0 Things that were scheduled for 1.0 but didn't make it. They're still hoping. label Oct 31, 2016
@simonmichael simonmichael modified the milestone: post 1.0 Oct 31, 2016
@mildred
Copy link

mildred commented Apr 10, 2019

Would you accept a PR that implements the alias subdirective?

@simonmichael
Copy link
Owner Author

@mildred I've been away from this for a while but if you want to do it, yes I guess so. I don't have a feel for how useful it is compared to the existing alias directive.

@mildred
Copy link

mildred commented Apr 18, 2019

Thank you, I wanted to learn Haskell a bit. The subdurective can be replaced by the alias directive, but when all accounts are declared up front it provides a better way to present the information.

There is something else, the alias directive ends at the end of file. This is a problem for me as I wanted to declare my account hierarchy in a separate accounts.ledger file included from the top level file. but the alias directives does not have any effect because of that. (See #1007)

Would it make sense to have the alias subdirective scope to continue after the end of file or not ?

@mildred
Copy link

mildred commented Apr 18, 2019

If the account directive does not span past the end of file (as for alias) the previous comment makes no sense.

@simonmichael
Copy link
Owner Author

simonmichael commented Apr 18, 2019 via email

@mildred
Copy link

mildred commented Apr 19, 2019 via email

@simonmichael simonmichael changed the title support the account directive & account metadata support the account directive & account tags Jan 28, 2022
@simonmichael simonmichael changed the title support the account directive & account tags account directives, subdirectives, tags Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-WISH Some kind of improvement request, hare-brained proposal, or plea. journal The journal file format, and its features. old:missed-1.0 Things that were scheduled for 1.0 but didn't make it. They're still hoping.
Projects
None yet
Development

No branches or pull requests

2 participants