Download sale records

@cdodge Here is the changes related to EX-51. Kindly let me know if anything missing in this. I am listing the registration codes related to sale in comma seperated way in order to avoid multiple rows issue. 

Thanks.