GnuCash  5.6-133-gc519490283+
Transaction Assistant

The Stock Transaction Assistant guides the user through collecting the information needed to properly account for one of several types of securities investment transaction, including opening and closing long and short positions, oridinary and capital gains dividends, returns of capital, notional dividends, splits, and reverse splits. More...

The Stock Transaction Assistant guides the user through collecting the information needed to properly account for one of several types of securities investment transaction, including opening and closing long and short positions, oridinary and capital gains dividends, returns of capital, notional dividends, splits, and reverse splits.

It tailors the available transaction types and what information it requests based on the current state of the account: For example, if the account holds an open short position it will offer buy to cover short and dividend payments to the owner of the stock.

The Assistant is built with the Model-View-Controller pattern where StockAssistantModel manages the data for the transaction, StockAssistantView creates the visuals using a GtkAssistant and a class for each page type, and StockAssistantController handles user input events.