Commissions Calculation

Commissions Calculation

hello all,

In my application, am trying to calculate the commissions to be paid out to sales people.

I already have the criteria for the commission, e.g if a clients purchases product A, the sales persons gets "x".
am having difficulties in writing this code; it would run like this:

if the Product is A, then commission is "x". 

Any ideas on this?

kind regards,