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

Arithmetic expressions not allowed in balance assertions created with editor #1877

Open
s-truax opened this issue Oct 19, 2024 · 0 comments
Open

Comments

@s-truax
Copy link

s-truax commented Oct 19, 2024

When using the "add transaction" function of the editor to add a balance assertion, arithmetic expressions are not considered valid input.

For example, the following balance assertion is well-formed and raises no errors with bean-check but can't be entered using the fava editor.

2024-10-01 balance Expenses:Fees (10 + 0.25) USD

See screenshot for another example:

Screenshot 2024-10-19 152527

This can probably be fixed by changing this line in fava/frontend/src/entry-forms /Balance.svelte

    <input
      type="tel"
      pattern="-?[0-9.,]*"
      placeholder={_("Number")}
      size={10}
      bind:value={entry.amount.number}
    />
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