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

Doesn't parse lot dates #7

Open
tbm opened this issue Mar 16, 2018 · 0 comments
Open

Doesn't parse lot dates #7

tbm opened this issue Mar 16, 2018 · 0 comments

Comments

@tbm
Copy link
Contributor

tbm commented Mar 16, 2018

ledger allows lot dates and beancount does as well.

ledger: 2.00 FOO { 4.00 BAR} [2018-03-05}
beancount: 2.00 FOO { 4.00 BAR, 2018-03-05}

But the script gets confused:

2018-01-01 * Opening balance: property
    Assets:Property          2 FOO { 20.00 EUR} [2011-12-18] @ 20.00 EUR
    Equity:Opening balance

leads to:

  File "/home/tbm/.local/lib/python3.5/site-packages/ledger_to_beancount/__init__.py", line 164, in translate_file
    number, units = translated_amount.strip().split(' ')
ValueError: too many values to unpack (expected 2)
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

1 participant