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

Balance export in ledger format #11

Closed
hrj opened this issue Feb 16, 2014 · 3 comments
Closed

Balance export in ledger format #11

hrj opened this issue Feb 16, 2014 · 3 comments

Comments

@hrj
Copy link
Owner

hrj commented Feb 16, 2014

This is useful to get previous years closing balances as opening balances for next year.

This will be equivalent to the equity report in ledger-cli

@hrj hrj added this to the 0.1.9 milestone Feb 16, 2014
@hrj
Copy link
Owner Author

hrj commented Mar 9, 2014

Idea: the closing of balances can be done as part of this export.

An example configuration could be:

exports += {
  type = "balance"
  closures += {
    from = [Income, Expense]
    to = [Capital:Profit]
  }
}

This will close the Income and Expense accounts completely and transfer their amount to the Capital:Profit account, and print the resulting balance statement.

If the closure option is useful in other reports too, it can be moved later to global scope in the config file.

One more option that can be considered is to "split the closure" or not. If split, then the the output will contain two transactions like this:

2013/3/31
  ; Balance before closure
  ...
  Income             4,000
  Expense           -1,000
  Capital:Profit    10,000

2013/3/31
  ; Closure
  Capital:Profit     3,000
  Income            -4,000
  Expense           +1,000          

Note: The date will need to be specified in the config file.

@hrj hrj changed the title Balance report in ledger format Balance export in ledger format Mar 22, 2014
@hrj hrj modified the milestones: Version 0.2, Version 0.1.9 Mar 22, 2014
hrj added a commit that referenced this issue Apr 19, 2014
@hrj
Copy link
Owner Author

hrj commented Apr 30, 2014

Missing from sheetalk's PR which I need to follow up:

  • use trait AccountMatcher if possible.

More things TODO:

  • Allow accounts to be filtered in export

@hrj hrj modified the milestones: Version 0.2, version 0.2.5 Feb 11, 2015
@hrj hrj added the design label Jul 30, 2015
@hrj hrj modified the milestones: version 0.2.5, Version 0.3 Jan 15, 2016
@hrj hrj modified the milestones: Version 0.3.5, Version 0.3 Jun 16, 2016
@hrj
Copy link
Owner Author

hrj commented Sep 7, 2016

Created follow up issues #95 and #96

@hrj hrj closed this as completed Sep 7, 2016
@hrj hrj modified the milestones: Version 0.3.5, Version 0.3.1 Sep 9, 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