You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Negative expenses are shown as positive expenses in details view #658
Describe the bug
Adding a negative expense works. However, the details view is missing the minus sign.
To Reproduce
Steps to reproduce the behavior:
Any group
Add a negative expense like -200
Click on the expense in the group to see its details
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
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.
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
Activity
[-]Negative expenses are shown as positive expanses in details view[/-][+]Negative expenses are shown as positive expenses in details view[/+]krokosik commentedon May 30, 2026
Fixed in 2.1.3
Fix expense details amount color #658
cswrd commentedon May 30, 2026
@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:
-200transaction200instead of-200200was in the input field. Still "you received" instead of "you spent"200.01. Suddenly, the sign is flippedfix: clear init refs on unmount so edit form repopulates
revert: restore original signed=false behavior for currency conversions
fix: preserve negative sign when editing an expense (oss-apps#689)