Email template for sales invoice

Hi All,

I’m quite new to this and hope someone can help me.

I have created an email template for sending out sales invoices as under:

Details

  • Invoice No: {{ name }}
  • Customer: {{ customer }}
  • Amount: {{currency }} {{ grand_total }}

The thing I’m struggling with, is to get the item names to display for this sales invoice. If I use {{items}} I get a long list of values which does contain the item codes and names, but how do I get just one value, say item_name to display.

Thanks for the help.

@ArunB

{% for item in items %}
    {{item.item_name}}
{% endfor %}

use html format

There should already be a predefined „item“ table for it.

Thanks a lot, that works like a charm

There is an item table, but I could not figure out how to get just the name or code, as items.item_code did’t work as is