Re: [GNC] Delete a trading account => crash

2024-05-22 Thread Kalpesh Patel
Ah, go to the contra cash account for the transaction and do it over there...
thanks for that tip! 

-- Original Message --
Received: Sun, 19 May 2024 05:38:58 PM EDT
From: Fred Tydeman 
To: Kalpesh Patel Cc: Gnucash Users

Subject: Re: [GNC] Delete a trading account => crash

> By mistake, I had two Asset accounts for the same stock, but with different
> spellings.
> That is what produced the two similar Trading accounts.
> 
> So, I ended up doing in the Cash account that did the buys and sells:
> In split view mode: change the stock asset account from one to the other,
> press Enter, that got me a popup to adjust the number of shares.
> Press Enter and all was fixed.
> 
> Doing that was a lot easier than deleting and re-entering the transactions.
> 
> When I was done, one stock asset account and one trading account were
> both empty, so could be deleted.  I also deleted the wrong spelling in the
> Security editor.
> 
> On Sun, May 19, 2024 at 9:28 AM Kalpesh Patel 
wrote:
> 
> > That is the behavior, sadly, where it goes back to what the original
> > transaction was. It is undesired but it is there and not likely to be
> > fixed.. (I run into it when I want to duplicate the transaction and then
> > just update the quantity)
> >
> > To get around, you technically have to enter the entire transaction from
> > beginning to end. Work around is to "modify" transaction is to open up
the
> > transaction, select first row from split view, go to first column
highlight
> > what is in it, copy it to clipboard, delete it, paste it from clipboard
> > (correct as you need to during this paste phase). Rinse-&-repeat for all
> > columns across for all rows in the transaction... you can minimize this
by
> > doing cut-&-paste to only the Shares, Buy and Sell columns and let it
> > calculate the Price column. It does get crazy when you have
multi-currency
> > enabled and/or are dividend reinvestment transactions ...
> >
> >
> > -Original Message-
> > From: Fred Tydeman 
> > Sent: Sunday, May 19, 2024 1:04 AM
> > To: Gnucash Users 
> > Subject: [GNC] Delete a trading account => crash
> >
> > 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).
> >
> >
> >
> 


___
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.


Re: [GNC] Delete a trading account => crash

2024-05-19 Thread Fred Tydeman
By mistake, I had two Asset accounts for the same stock, but with different
spellings.
That is what produced the two similar Trading accounts.

So, I ended up doing in the Cash account that did the buys and sells:
In split view mode: change the stock asset account from one to the other,
press Enter, that got me a popup to adjust the number of shares.
Press Enter and all was fixed.

Doing that was a lot easier than deleting and re-entering the transactions.

When I was done, one stock asset account and one trading account were
both empty, so could be deleted.  I also deleted the wrong spelling in the
Security editor.

On Sun, May 19, 2024 at 9:28 AM Kalpesh Patel  wrote:

> That is the behavior, sadly, where it goes back to what the original
> transaction was. It is undesired but it is there and not likely to be
> fixed.. (I run into it when I want to duplicate the transaction and then
> just update the quantity)
>
> To get around, you technically have to enter the entire transaction from
> beginning to end. Work around is to "modify" transaction is to open up the
> transaction, select first row from split view, go to first column highlight
> what is in it, copy it to clipboard, delete it, paste it from clipboard
> (correct as you need to during this paste phase). Rinse-&-repeat for all
> columns across for all rows in the transaction... you can minimize this by
> doing cut-&-paste to only the Shares, Buy and Sell columns and let it
> calculate the Price column. It does get crazy when you have multi-currency
> enabled and/or are dividend reinvestment transactions ...
>
>
> -Original Message-
> From: Fred Tydeman 
> Sent: Sunday, May 19, 2024 1:04 AM
> To: Gnucash Users 
> Subject: [GNC] Delete a trading account => crash
>
> 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).
>
>
>
___
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.


Re: [GNC] Delete a trading account => crash

2024-05-19 Thread John Ralls


> On May 18, 2024, at 22:04, Fred Tydeman  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.


Re: [GNC] Delete a trading account => crash

2024-05-19 Thread Kalpesh Patel
That is the behavior, sadly, where it goes back to what the original 
transaction was. It is undesired but it is there and not likely to be fixed.. 
(I run into it when I want to duplicate the transaction and then just update 
the quantity)

To get around, you technically have to enter the entire transaction from 
beginning to end. Work around is to "modify" transaction is to open up the 
transaction, select first row from split view, go to first column highlight 
what is in it, copy it to clipboard, delete it, paste it from clipboard 
(correct as you need to during this paste phase). Rinse-&-repeat for all 
columns across for all rows in the transaction... you can minimize this by 
doing cut-&-paste to only the Shares, Buy and Sell columns and let it calculate 
the Price column. It does get crazy when you have multi-currency enabled and/or 
are dividend reinvestment transactions ...


-Original Message-
From: Fred Tydeman  
Sent: Sunday, May 19, 2024 1:04 AM
To: Gnucash Users 
Subject: [GNC] Delete a trading account => crash

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).


___
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.


[GNC] Delete a trading account => crash

2024-05-18 Thread Fred Tydeman
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).
___
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.