consolidated_detailed_gains. group by fy/scrip/selldate/buydate