I am trying to include the order number of the sales invoice into the main message body of the Sale invoice email template.
Below the code that is used but the order number is blank in the email (but not on the actual in invoice).
{% for field in fields %}{% if field.label == ‘Order number’ %}{% capture order_number %}{{ field.text }}{% endcapture %}{% endif %}{% endfor %}
{% capture if_order_number %}{% if order_number == null %}.{% else %} BOL {{ order_number }}.{% endif %}{% endcapture %}
Please find herewith attached your Invoice with number {{ recipient.code }}-{{ reference }} dated {{ invoice_date }}{{ if_due_date }}. BOL reference: {{order_number}}.
Apprecciate your help in pointing me in the right direction.
Thank you! Folowing the same “logic” I tried variants to also display Due date (worked) and total to be paid (struggle with this see below). I tried {{ fields[" total “] }} and {{ fields[“total.text”] }} and {{ table.totals[” total “] }} and {{ totals[” total "] }} but the field stays empty in below body text in email template.
Please find attached {{ title }} #{{ fields[“Invoice number”] }}. Please make payment of {{ table.totals[" total "] }} before the due date of {{ fields[“Due date”] }} to:
The order number is next to the customer name. You are right that the additional optional order number box that was next to the reference box has disappeared in recent versions of Manager and this was explained in other discussions on the forum, just search and you see why it is made redundant by @lubos.
Only the previously created Sales Orders are listed in the Order number entry field. As @eko has already indicated, this all was explained in another forum thread.
Yes, this is deliberate what we alerted you about, this is no longer supported and you are encouraged to look in the other forum threads where this is explained in detail.
Thank you, and appreciated for your prompt response.
Have customized a field for the order number, and it works well.
The negative side of it is upon generating customer statements (unpaid invoices) the customized field for order number does not appear on the columns, rather the old column which does not populate new order numbers