Skip to content

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

Closed

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.

Activity

  1. changed the title [-]Negative expenses are shown as positive expanses in details view[/-] [+]Negative expenses are shown as positive expenses in details view[/+] on May 22, 2026
  2. krokosik commented on May 30, 2026

    @krokosik
    Collaborator

    Fixed in 2.1.3

  3. cswrd commented on May 30, 2026

    @cswrd
    Author

    @krokosik thx for the fix

    Please notice there's still an issue regarding the flipped sign issue I mentioned in the additional notes. tl;dr:

    1. Create a -200 transaction
    2. Edit the transaction
    3. See the amount input field is pre-filled with 200 instead of -200
    4. Save without changes. No changes, even though 200 was in the input field. Still "you received" instead of "you spent"
    5. Alternative: save with a change, e.g. 200.01. Suddenly, the sign is flipped
  4. added this to the 2.1.x milestone on Jun 21, 2026
  5. added 2 commits that reference this issue on Jun 21, 2026
    3ee4e4e
    f286665
  6. added a commit that references this issue on Jun 23, 2026
    77dd6d3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions