Commented code to fix problem when oppening operations stock detail with
trades that is not of sell or buy type.