The best description of the main theme or lesson of the story is:
Rules should be applied fairly.
This is evident as Cody struggles with how to enforce the rules consistently, especially when he realizes that he has given preferential treatment to friends while others are charged full price.