gnucash-android icon indicating copy to clipboard operation
gnucash-android copied to clipboard

Entering new transaction fails in 1.5.3

Open cstim opened this issue 11 years ago • 5 comments

With 1.5.3 and double-entry activated, entering a new transaction (in completely empty accounts) fails. After pressing "Save", the new transaction just vanishes and is nowhere visible.

When de-activating double-entry, everything works fine. This is on android 4.4.4, , Sony xperia z1 compact.

Also, in version 1.5.2, the entering of new transactions probably worked fine, but my memory might also trick me. For sure in version 1.5.1 all worked fine.

cstim avatar Feb 08 '15 20:02 cstim

Thanks for reporting this. I am at a loss because I've had a few reports of this, but cannot replicate it. I have tried with both double-entry enabled and disabled, with no luck. Maybe it could be something that carries over from upgrades since I am constantly reinstalling as part of the dev process. I'll keep trying to find out what is happening.

Maybe can you give me an example of the account types involved and I can try to exactly replicate your environment. I tried with some simple account types and everything worked

codinguser avatar Feb 09 '15 13:02 codinguser

Confirming, happens to me as well.

Steps:

  1. After install, cancel default account creation
  2. Set default currency to EUR
  3. Create new account with type Cash
  4. Go to it and create new record, click V to save - nothing happens.

Android 4.4.2

Just checked with default accounts: records are created. So I think it has something to do with the case when there is just 1 account.

relgames avatar Feb 11 '15 09:02 relgames

The bug can be reproduced with @relgames 's procedure.

It is because there's no valid account for the other split in the new created transaction, so the creation of the transaction fails.

The valid transfer accounts are queried in the DB in TransactionFormFragment.updateTransferAccountsList() .

I think a warning should be added when the user tries to create a new transaction in a account but no valid transfer account can be found. Or create an Imbalance account if no valid transfer account is found.

fefe982 avatar Feb 11 '15 10:02 fefe982

Checked with 1.5.2 - no issue.

relgames avatar Feb 11 '15 10:02 relgames

Checked latest develop branch - it is fixed.

relgames avatar Feb 12 '15 10:02 relgames