Earlier this week, I had the wonderful opportunity to speak at SugarCON. Thanks to everyone who came to my presentation; as promised, here are some code samples from the presentation. For the Reports filter modification, I tried my best to describe where each code sample goes within the appropriate files. I couldn’t use code line numbers because at Milsoft, most of the important files are heavily modified. Also note, I used direct MySQL connections in my code. Feel free to use SOAP or the built in SugarCRM database functionality.