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

Exports should show expressions and substitutions #101

Open
hrj opened this issue Sep 9, 2016 · 0 comments
Open

Exports should show expressions and substitutions #101

hrj opened this issue Sep 9, 2016 · 0 comments

Comments

@hrj
Copy link
Owner

hrj commented Sep 9, 2016

Given a transaction like this:

. 2016/Sep/9     account1     xyz * pqr(3)

The exported post entry can include the expression verbatim, as well as the substituted values.

For journal export in XML format, this would be something like this:

<txn>
  <post delta="120" name="account1" expression="xyz*pqr(3)" substitution="10 * 12" />
  <post delta="-120" name="balancedAccount" />
</txn>

For ledger format, we could emit the expressions and substitutions as comments.

Alternatively, we could also achieve the same goal by,

  • A builtin-function that returns the post's expression as a string
  • A builtin-function that returns the post's substitutions as a string
  • Ability to evaluate expressions in a comment!
@hrj hrj added the enhancement label Sep 9, 2016
@hrj hrj added this to the Version 0.3.5 milestone Sep 9, 2016
@hrj hrj modified the milestone: Version 0.3.2 Nov 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant