Ubercart Coupon - only allow one coupon per order, but always apply the most recently entered one
The answer is very simple but will only work if you do not want to allow multiple coupons per order.

Visit /admin/store/settings/coupon and uncheck "Allow multiple coupons to apply to a single order"; Save the configuration.  Now the most recently applied coupon will be the only one added to the order.