While inserting a new order, on the last page (pricing page displayed below) select your affiliate from the drop down list.

Selecting an affiliate