Create a transaction type whereby you can sell shares to pay investment fees - this is a common type for defined contribution employer pension plans
Currently you have to use the Sold transaction and then Xout cash to pay fees
From what I have heard, even though it says "Commission" the general consensus is that one should use if for any kind fees in the sold transaction.