Accessing expense notes in invoice template

Alexander Hiam's Avatar

Alexander Hiam

04 Jun, 2013 04:39 PM

Hi all,

I can't figure out how to access the text I've entered in the notes field of my expenses from the invoice templates. When I try something like:

{% for project in invoice.items_by_project %}
  {{ item.description }}
  {{ item.notes }}
{% endfor %}

[[ item.description }} prints only the job descriptions, and {{ item.notes }} doesn't print anything. What am I missing?

  1. Support Staff 1 Posted by Seth B on 04 Jun, 2013 10:56 PM

    Seth B's Avatar

    Hi Alexander,

    'item' here refers to the 'invoice item' and not the expenses...

    Look at the template 'invoice_row' - at the bottom. There's a loop that goes over item.expenses - where it prints out 'description'.

    PS: Unless you've modified your templates heavily you should be able to print out this stuff simply by selecting the 'show detailed expenses' checkbox when editing an invoice.


    • Seth
  2. Seth B closed this discussion on 04 Jun, 2013 10:56 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac