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

Converter to Ledger should preserve tags (was: beancount to ledger) #3

Closed
blais opened this issue Aug 25, 2018 · 11 comments
Closed

Converter to Ledger should preserve tags (was: beancount to ledger) #3

blais opened this issue Aug 25, 2018 · 11 comments
Milestone

Comments

@blais
Copy link
Member

blais commented Aug 25, 2018

Original report by Vikas Rawal (Bitbucket: vikasrawal, GitHub: vikasrawal).


Using the following command to convert a beancount file to ledger results in stripping the file of all tags.

bean-report test.beancount ledger

It would be useful to retain the tags and make them ledger compatible.

Vikas

@blais
Copy link
Member Author

blais commented Apr 21, 2019

Original comment by Alen Šiljak (Bitbucket: Alen Siljak, GitHub: MisterY).


Either this or having full file compatibility (at least for the features supported by beancount) would be really helpful.

@blais
Copy link
Member Author

blais commented Apr 23, 2019

Original comment by Alen Šiljak (Bitbucket: Alen Siljak, GitHub: MisterY).


@Vikas, do you have a test file that could be used?

@blais blais changed the title beancount to ledger Converter to Ledger should preserve tags (was: beancount to ledger) May 23, 2020
@tbm
Copy link
Collaborator

tbm commented Jul 17, 2020

Can you move this ticket to https://github.com/beancount/beancount2ledger

There should be a link "Transfer issue" in the lower right corner (there's an arrow to the right).

@tbm
Copy link
Collaborator

tbm commented Jul 17, 2020

Tags are preserved already:

2020-01-01 open Assets:Test

2020-07-17 * "Test"
  #foo
  Assets:Test     10.00 EUR
  Assets:Test    -10.00 EUR

results in


account Assets:Test

2020-07-17 * Test
  ; :foo:
  Assets:Test                                                     10.00 EUR
  Assets:Test                                                    -10.00 EUR

@vikasrawal can you clarify what you were asking for?

@tbm
Copy link
Collaborator

tbm commented Jul 17, 2020

@MisterY I'm not sure I understand the comment you made. Can you clarify what you mean with:

Either this or having full file compatibility (at least for the features supported by beancount) would be really helpful.

@blais blais transferred this issue from beancount/beancount Jul 17, 2020
@MisterY
Copy link
Contributor

MisterY commented Jul 19, 2020

Hi, @tbm,

I (probably) meant that the full file compatibility would be great. If not, then at least the support for the features that Beancount has and which are also supported in Ledger. Looking back, I see that the comment is not all too useful. ;)

@tbm
Copy link
Collaborator

tbm commented Jul 20, 2020

@MisterY I'll try to work on compatibility (where this is possible). If you're aware of specific issues, please open bugs with beancount samples. Thanks!

@tbm
Copy link
Collaborator

tbm commented Jul 20, 2020

I wonder if @vikasrawal meant meta-data rather than tags. Meta-data is indeed stripped, see #7.

@vikasrawal
Copy link

vikasrawal commented Jul 20, 2020

Ledger calls them metadata tags. But yes, I was referring to the meta data.

@tbm
Copy link
Collaborator

tbm commented Jul 20, 2020

Ledger calls them metadata tags. But yes, I was referring to the meta data.

Ok, thanks for the clarification.

@tbm
Copy link
Collaborator

tbm commented Jul 23, 2020

@vikasrawal @MisterY I split out the ledger conversion from beancount into a standalone tool called beancount2ledger. Please give this a go.

@tbm tbm added this to the 1.1 milestone Jul 24, 2020
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

4 participants