I own a copy of phpcoupon script and am modifying it to suit my needs. I am not sure how much time it will take. I have had a couple of people work on it, but not complete the task. They both complained that the code was poorly written. The script is very popular, however, and if you search for a coupon script in google it ranks first.
It does most of what I want, so I purchased it.