Skip to content

Negative expenses are shown as positive expenses in details view #658

@cswrd

Description

@cswrd

Describe the bug
Adding a negative expense works. However, the details view is missing the minus sign.

To Reproduce
Steps to reproduce the behavior:

  1. Any group
  2. Add a negative expense like -200
  3. Click on the expense in the group to see its details
  4. See the expense lost its minus sign in the upper part (text detailed part below is just fine)

Expected behavior
The minus sign is shown in the details view.

Screenshots
Image

App version
2.1.2

Desktop (please complete the following information):

  • OS: Win11
  • Browser Chrome
  • Version latest

Smartphone (please complete the following information):

  • Device: Google
  • OS: Android
  • Browser Google Chrome
  • Version latest

Additional context
Please also notice: if you click on edit in the expense details view, do not change anything, i.e. keep the wrong 200 that would appear in my example and just hit save, the expense seems to be kept stored as a negative expense just as before - even though it got saved without the minus sign this time by the user.

If however the amount is changed, e.g. you change to 200.01 the data seems to be stored as positive value internally. So it's split from "you received" to "you spent" suddenly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions