Skip to content

Instantly share code, notes, and snippets.

@theinventor
Created May 30, 2015 13:28
Show Gist options
  • Save theinventor/c1a0b866e4ed8962f434 to your computer and use it in GitHub Desktop.
Save theinventor/c1a0b866e4ed8962f434 to your computer and use it in GitHub Desktop.
add an account summary to invoices
Use this tag instead of the {{invoice_balance_due}}:
{{customer_open_balance}}
put this right below the section with the first balance due, above the line items table:
<div class="invbody">
<table cellspacing="0" class="invbody-items">
<thead>
<tr>
<th class="first">
<div class="item">Account Summary</div>
</th>
<th class="last">
<div class="linetotal">Amount</div>
</th>
</tr>
</thead>
<tbody>{{invoice_account_summary_lines}}
</tbody>
</table>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment