If I think of how accounting works, then that's correct. You have your credit and debit and the total is proper.
When I enter a sale of stocks or bonds, the particular stock or bond and the value thereof is not removed from my screen; rather, the amount of the sale is shown at the bottom of the screen on a new line named CASH. The amount is shown in red and is deducted from the value of the remaining investments. ?What an I overlooking ?