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

Create a script to start a new ledger file #7

Open
somecho opened this issue May 12, 2023 · 0 comments
Open

Create a script to start a new ledger file #7

somecho opened this issue May 12, 2023 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@somecho
Copy link
Owner

somecho commented May 12, 2023

At the end of the year, it's common practice to carry on this year's balance into the new financial year. The idea of this script is to have something like newledger -f lastyear.ledger -o thisyear.ledger, setting up the accounts properly.

If no input file is given, then allow key-value pairs to be given to setup the equity account. Example: newledger -o thisyear.ledger -a Assets:Cash -v '100.00 EUR' -a Liabilities:Loan -v '200.00 EUR'. Example output would be:

2024/01/01 Opening Balance
    Assets:Cash                                                100.00 EUR
    Liabilities:Loan                                           200.00 EUR
    Equity 
@somecho somecho added enhancement New feature or request good first issue Good for newcomers labels May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant