codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Asset accounts gets (-) negative sign prepended when editing, causing double negative #726

Closed mutedbytes closed 7 years ago

mutedbytes commented 7 years ago

Steps to reproduce the behaviour

  1. Create a transaction to decrease amount in an asset account.
  2. Click to edit the transaction, a (-) sign appears in front of red decreasing value
  3. Click to save the edited transaction
  4. -> error = the "decrease" transaction now becomes a "negative decrease" resulting in a positive increase to the asset balance

This behavior occurred after changing default transactions to be "credit" rather than "debit" in settings. Not sure if this is relevant.

Expected behaviour

Expected behavior would be to have the negative not included in the calculation.

Actual behaviour

Negative sign seems to be prepended upon a decrease transaction type. After editing and saving, the negative seems to be included in the resulting calculations, causing the transaction to increase the asset balance rather than decreasing it as should be.

Software specifications

rivaldi8 commented 7 years ago

This has already been reported in #723. Please, add any further comments there. Thanks!