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

Feature request: relabeling existing ledger #125

Open
viraptor opened this issue Sep 24, 2023 · 1 comment
Open

Feature request: relabeling existing ledger #125

viraptor opened this issue Sep 24, 2023 · 1 comment

Comments

@viraptor
Copy link

viraptor commented Sep 24, 2023

I can currently use reckon to assign accounts based on transactions in CSV files. But when importing lots of data (last 5 years for example), not all of it is important to deal with straight away.
I can use the default account to assign the rest to Expenses:Other or something similar, but then I lose track of them.

I'd love to be able to provide an existing ledger as input and say that only account X should be processed. This would allow me to explicitly process major entries and chuck everything else into Expenses:TODO, until I have time to come back and process them with reckon --process-ledger some_file --query 'Expenses:TODO' or something similar.

@benprew
Copy link
Collaborator

benprew commented Oct 4, 2023

Hi @viraptor thanks for using Reckon!

I think I understand it, it sounds like what you're trying to do is edit existing ledger entries that match a specific account 'Expenses:TODO', is that correct?

If you want to reprocess your ledger file, you could export it as CSV (ledger csv), then filter by a specific account grep Expenses:TODO and pass it back into reckon. Reckon doesn't support editing a ledger file directly.

ex.

ledger csv -f some_file | grep Expenses:TODO |reckon -l some_file -o some_new_file.

Another alternative I see is that when you do the initial import, if reckon could output those TODO transactions into a different file, then you could csv that file and add them to the main file, instead of editing a ledger file. Would that work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants