Order printer template and shopify automatic discount

Thanks for the solution.

I used this to include the discount name for Non-Automatic discounts.

{% if total_discounts > 0 %}

Total Discounts: {% for discount in discounts %}"{{ discount.code }}"{%endfor%}
    {{ total_discounts | money }}

{% endif %}