We need an affiliate tracking system for an existing application. The existing application is an online service with a signup and mothly fee.
Some basic requirements:
* The system should track 2 levels of commissions
* The commission structure should be editable but with default values
* Affiliate codes should be automatically generated for print ads and for online tracking
* There should be a module for generating PDF flyers with the affiliate codes
* There should be a basic module for managing leads
Dev framework should be CakePHP (latest) with a MySQL db backend. This application will be hosted on a Linux server so all libraries and modules should be compatible (PDF generation, etc.).