Skip to content

[Feature request] Calculate the amount: basic math in "Amount" field #489

@maxanthem

Description

@maxanthem

Description

When adding an expense in my group, I sometimes have to sum individual items from a receipt. I usually type the numbers on a calculator, but I don't always have the calculator with me, and it can be quite inconvenient

Suggestion

What would be awesome is some basic math handling in the "Amount" field itself.

Example

Input: The users types "0.75 + 1.65 * 2" in the Amount field when adding an expense.
Output: When clicking Save the amount is calculated. An error is returned if the formula is incorrect, or possibly the button Save is greyed out with an error text box.

Optional

  • Show the evaluation of the calculation near the Amount field (right to it)
  • Parenthesis support, or basically all the basic scientific programming syntax (e.g. Python).
  • Preserving the formula string to be able to modify it later: such that I stays visible in the Amount field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions