Order Printer Line Item Attributes (Adding discount per item)

Hi,

We are currently using the below coding for our invoices.

{{ shop_name }}
Moca Fashion Ltd

{{ shop.address }}
{{ shop.city }} {{ shop.province_code }} {{ shop.zip | upcase }}
{{ shop.country }}
Reg. No:8353283
VAT Number: 161794293
Email: info@fashionscarfworld.co.uk
Tel: +44 161 839 2223
Web: [www.fashionscarfworld.co.uk</p](http://www.fashionscarfworld.co.uk


Invoice
Issue Date: {{ "now" | date: "%d/%m/%y" }}
Order Number: {{ order_name }}
{% for transaction in transactions %} Payment Method: {{ transaction.gateway | payment_method }} {% endfor %}

Bill to:

{% if shipping_address %}

{{ billing_address.first_name }} {{ shipping_address.last_name }}

{% if billing_address.company= “” %}

{{ billing_address.company }}

{% endif %}
{% if billing_address.address2= “” %}

{{ billing_address.address2 }}

{% endif %}

{{ billing_address.address1 }}


{{ billing_address.city}}, {% if address.province_code %}{{ customer.default_address.province_code }}, {% endif %}


{{ billing_address.country }}


{{ billing_address.zip }}


{{ billing_address.phone }}
{% endif %}

Ship to:

{% if shipping_address %}
{{ shipping_address.first_name }} {{ shipping_address.last_name }}
{% if shipping_address.company= "" %}
{{ shipping_address.company }}
{% endif %} {% if shipping_address.address2= "" %}
{{ shipping_address.address2 }}
{% endif %}
{{ shipping_address.address1 }}

{{ shipping_address.city}}, {% if address.province_code %}{{ customer.default_address.province_code }}, {% endif %}

{{ shipping_address.country }}

{{ shipping_address.zip }}

{{ shipping_address.phone }}

{% endif %}


{% for line_item in line_items %} {% endfor %}
SKU Item Price Qty Subtotal
{{ line_item.sku }} {{ line_item.title }}

{{ line_item.price | money }}

{{ line_item.quantity }}

{{ line_item.line_price | money }}

{% for discount in discounts %} {% endfor %} {% if shipping_address %} {% endif %} {% if total_paid != total_price %} {% endif %}
10% Black Friday Discount: -{{ total_discounts | money }}
Subtotal price: {{ subtotal_price | money }}
Includes discount "{{ discount.title }}" {{ discount.savings | money }}
Shipping: {{ shipping_price | money }}
Total tax (20%): {{ tax_price | money }}
Total price: {{ total_price | money }}
Total paid: {{ total_paid | money }}
Outstanding Amount: {{ total_price | minus: total_paid | money }}

{% if note %}

Note

{{ note }}

{% endif %}

We have previously had the option to show if an item is discounted as a line attribute, but now this just shows at the bottom of the invoice.

How would we go about adding the line attribute for order with sales/discounted items?

Thanks!

I tried {{ line_item.total_discount | money }} but this doesnt work. I will see what else there is out there ?