<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body>
    <p><font size="+1">Thanks for your reply.</font></p>
    <p><font size="+1">Please see further annotated comments for your
        attention:</font></p>
    <p> </p>
    <pre class="western">First -  It seems a category cannot be deleted if it is the default  
category for a payee.  That seems to be why all these categories cannot  
be deleted.

<font color="#c9211e">"Okay, </font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt">this means</font></font></font><font color="#c9211e"> that the removing of all associations (including payee) would allow 
category deletion? How do I trace and remove payee associations? Trust this 
is a straightforward process?"</font>

A000111 is default category for P002488 and P002504, and removing those  
default categories enables delete for that category.
Delete is not enabled for Category A000004, even after is becomes  
enable for A000111.

<font color="#c9211e">"At no stage did I want to delete any category before moving its contents. 
This all started because I was prevented from deleting categories </font><font color="#c9211e">which 
appeared to have </font><font color="#c9211e">zero content. </font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">T</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">he delete option being greyed out. I 
didn’t know about the payee associations. </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">In the absence of this knowledge, 
t</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">he workaround I employed was to move the </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">5 </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">sub-</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">categories </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">
(</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">A000111, A000057, 088, 106 </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">and </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">A000005), </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">which I couldn't delete,</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2"> </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">into a 
freshly created parent </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">category. I had actually given up on my attempt to 
delete these categories and was merely tidying up by putting them</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2"> </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">all in 
one place. But I</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2"> </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">then </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">wondered what would happen if I then tried to delete 
my </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">freshly</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2"> created parent </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">category </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">which contained </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">these</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2"> 5 sub-categories</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">. To my 
surprise </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">and pleasure</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">, the delete option for this </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">main </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">category and the 
5 sub-categories was now </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">possible</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">. </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">The option of delet</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">ing the </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">
sub-categories</font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2"> </font></font></font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">was now possible via deletion of the main category (see attached 
screen shot of dialogue that opens after right-clicking main category and 
selecting delete).</font></font>"</font>

A000053 (delete disabled)  is subcategory of A000018 (delete enabled)
A000057, 088, and 106 are each the default category for one or three  
Payees.

A000005 is a default category for Payee 002440.

Trying to delete category A000046 first asked which other category to  
assigne associated transactions, and then said that there were sub  
categoreis which could not be deleted, and to proceed, they would be  
made subcategories of Exmpense.

<font color="#c9211e">"This is not what I wanted to do nor did I try to do so."</font>

Are you sure that when you deleted a parent category, the undeletable  
subcategory was really deleted along with it, or was it just moved up  
to a top level expense category?

<font color="#c9211e">"The only parent category that I tried and succeeded </font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">in</font></font></font><font color="#c9211e"> delet</font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">ing</font></font></font><font color="#c9211e"> was the one 
that </font><font color="#c9211e"><font face="Liberation Mono, monospace"><font style="font-size: 10pt" size="2">I</font></font></font><font color="#c9211e"> freshly created."</font>


 </pre>
    <p>
      <style type="text/css">
                pre { background: transparent }
                pre.western { font-family: "Liberation Mono", monospace; font-size: 10pt }
                pre.cjk { font-family: "Noto Sans Mono CJK SC", monospace; font-size: 10pt }
                pre.ctl { font-family: "Liberation Mono", monospace; font-size: 10pt }
                p { margin-bottom: 0.25cm; line-height: 115%; background: transparent }</style></p>
    <div class="moz-cite-prefix">On 31/07/2020 07:43, Thomas Baumgart
      wrote:<br>
    </div>
    <blockquote type="cite" cite="mid:5766035.zT0iLfy11b@thb-nb">
      <pre class="moz-quote-pre" wrap="">FYI, since you are not subscribed to the list.

----------  Forwarded Message  ----------

Subject: Re: Unable to delete some kmy categories which are greyed out, first posted on Fri Jul 24, 2020 3:05 pm
Date: Donnerstag, 30. Juli 2020, 22:21:22 CEST
From: Jack <a class="moz-txt-link-rfc2396E" href="mailto:ostroffjh@users.sourceforge.net"><ostroffjh@users.sourceforge.net></a>
To: <a class="moz-txt-link-abbreviated" href="mailto:kmymoney-devel@kde.org">kmymoney-devel@kde.org</a>

On 2020.07.30 10:21, lampsh8de wrote:
</pre>
      <blockquote type="cite">
        <pre class="moz-quote-pre" wrap="">Hello,

Please find attached file as requested. The problem categories  
relating to the above post are as follows:

1 sub-category of A000004 (A000111)

3 sub-categories of A000053 (A000057, 088, 106)

1 sub-category of A000046 (A000005)

Thanks for looking at this.
</pre>
      </blockquote>
      <pre class="moz-quote-pre" wrap="">(I'm using KMM compiled from git head of 5.1 branch)

First -  It seems a category cannot be deleted if it is the default  
category for a payee.  That seems to be why all these categories cannot  
be deleted.
A000111 is default category for P002488 and P002504, and removing those  
default categories enables delete for that category.
Delete is not enabled for Category A000004, even after is becomes  
enable for A000111.

A000053 (delete disabled)  is subcategory of A000018 (delete enabled)
A000057, 088, and 106 are each the default category for one or three  
Payees.

A000005 is a default category for Payee 002440.

Trying to delete category A000046 first asked which other category to  
assigne associated transactions, and then said that there were sub  
categoreis which could not be deleted, and to proceed, they would be  
made subcategories of Exmpense.

Are you sure that when you deleted a parent category, the undeletable  
subcategory was really deleted along with it, or was it just moved up  
to a top level expense category?

Question for the developers: when you delete a category, it asks what  
other category to assign associated transactions to.  Is there any  
reason not to reassign payee default categories (and scheduled  
transactions) in the same way?

Jack


-----------------------------------------
</pre>
    </blockquote>
  </body>
</html>