Skip to content

Bug: Incorrect storage of transactions #743

@DiMan

Description

@DiMan

Originally, I opened this ticket for an export error of QIF files. After further analysis, I found out that the data in the program is stored incorrectly in some situations. Here is the description of the error.
(Similar tickets are #723 and #726)

Steps to reproduce the behaviour

  1. Set "Default Transaction Type" to "CREDIT" (under "Settings" > "Transactions" > "Default Transaction Type")

  2. Create new transaction from Account "Assets:Current Assets:Cash in Wallet"
    Description = "Test 1"
    Amount = "0.01"
    Direction "Spend" (set automatically)
    Account "Expenses:Auto"

  3. Save transaction

  4. Check the total amount for Account "Cash in Wallet" = -0.01 (🆗)

  5. Create new transaction from Account "Assets:Current Assets:Cash in Wallet"
    Description = "Test 2"
    Amount = "0.02"
    Direction "Spend" (set automatically)
    Account "Assets:Current Assets:Saving Account"

  6. Save transaction

  7. Now you see two transactions in Account "Cash in Wallet": -0.02€ and -0.01€.

  8. Check the total amount for Account "Cash in Wallet" = -0.03€ (🆗)

  9. Now change the Account in the transaction "Test 2"
    Change Account: "Assets:Current Assets:Cash in Wallet" => "Expenses:Auto"

  10. Save transaction

  11. You still see two transactions in Account "Cash in Wallet": -0.02€ and -0.01€. (🆗)

  12. If you check the total amount for Account "Cash in Wallet", you will see +0.01€! (✘).

| | |

Export transactions to QIF or XML

When exporting the transactions as QIF or XML file, you can see that the data was stored incorrectly:
See row No. 15:

The transaction was stored with a double minus. See row No. 1495 und 1496.

Here are the files:
QIF and XML Files.zip

Software specifications

  • GnuCash Android version: 2.2.1
  • System Android version: 6.0.1 (german)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions