Updated location_summary in views to better handle database results and to add an if statement if taking commission into account.