Is it possible to have a coupon code applied to more than one item in the cart?

For example business sells cookies and offers multiple flavors in that packaging. A customer orders that product in 2 different flavors. Shopping cart shows Cookie - Vanilla 1 ordered and Cookie- Chocolate 1 ordered. Customer enters discount coupon code thinking each package will be discounted. However, the discount is only being applied to one of the items.

How can I get the coupon discount to be applied to both items?