Hi. How can we help?

Adding the original invoice number to credit invoices

In some countries, merchants are required to display the original, or parent, invoice number on all credit invoices. We recently added support for this in Lightspeed eCom. However, if you modified your invoice template before this change was introduced, you will need to make some minor adjustments to the invoice template's HTML code. 

To modify the invoice template

  1. In the invoice template, find the following code block:
    <div class="pull-right text-right">
        <h1>{{ (invoice.is_credit ? 'Credit memo' : 'Invoice') | t }} {{ invoice.number }}</h1>
        <h3 class="text-muted">{{ 'Order' | t }} {{ order.number }}</h3>
      </div>
    </div>
  2. Replace the code block with the following (note the addition of the new if statement):
    <div class="pull-right text-right">
        <h1>{{ (invoice.is_credit ? 'Credit memo' : 'Invoice') | t }} {{ invoice.number }}</h1>
        <h3 class="text-muted">{{ 'Order' | t }} {{ order.number }}</h3>
        {% if invoice.is_credit %}
            <h3 class="text-muted">{{ 'Original Invoice' | t }} {{ invoice.parent_number }}</h3>
        {% endif %}
    </div>
 
 

Was this article helpful?

0 out of 0 found this helpful