D7 Commerce - Save rules applied to line items in cart?
I don't think there is. You will have to:


Add a Discount /admin/commerce/discounts, which will generate a discount rule. /admin/config/workflow/rules?event=0&amp;tag=Commerce%20Discount
Edit the discount Rule and do your magic here.
Create a Coupon /admin/commerce/coupons and link it to your Discount in the "Discount Reference" field.