> On May 18, 2024, at 22:04, Fred Tydeman <tydeman.f...@gmail.com> wrote: > > Running GnuCash 4.14 on Fedora Linux. > > Due to a mistake on my part, I have two Trading accounts: > IVR-PC > IVRPRC > for the same security. > > First, I tried changing Trading:IVRPRC to Trading:IVR-PC in a Sell or Buy > transaction from the cash account. However, when I pressed Enter, > Gnucash undid my change. > > Then, I tried deleting Trading:IVRPRC account and moving its transactions > to Trading: IVR-PC. > That crashed Gnucash. > > I am now running a Check & Repair all (takes many minutes).
Fred, Do you have two commodities IVRPRC and IVR-PC in your book or did you rename IVRPRC to IVR-PC? If the former have you changed all of the accounts that were denominated in IVRPRC to use IVR-PC? Trading splits are deleted and regenerated as part of the transaction balancing code run during transaction commit when trading accounts are enabled in File>Preferences so once you have the account commodities fixed you can edit the transactions with the wrong trading account in some register other than the trading account and delete the trading splits then close the transaction. Deleting the IVRPRC trading account will only work if you renamed the commodity: If you have separate commodities then GnuCash won’t let you transfer the splits because the commodities don’t match. You also need to turn off trading accounts in File>Preferences before you do the delete-and-transfer then turn it back on again. If you have two commodities you need to change all of the accounts using IVRPRC to use IVR-PC then edit every transaction that used IVRPRC, delete the trading splits, and commit it to generate new trading spits in IVR-PC. Regards, John Ralls _______________________________________________ gnucash-user mailing list gnucash-user@gnucash.org To update your subscription preferences or to unsubscribe: https://lists.gnucash.org/mailman/listinfo/gnucash-user ----- Please remember to CC this list on all your replies. You can do this by using Reply-To-List or Reply-All.