Fix writing correct number of columns for investment transactions to csv file

Authored by habacker on Jun 5 2018, 12:59 PM.