You can use the customer.internal_notes and customer.company_account.internal_notes variables to show the internal notes set against a customer and notes against a company in the production worksheet respectively.
Here is an example of how you can modify the default Worksheet Template to show notes set against a customer/company.
Default Code
<div id="header_order_details_2">
<ul>
<li><label>Order date: </label>{{ order.date_ordered | date: "%b %d, %Y" }}</li>
<li><label>Due date: </label><span class="highlight">{{ order.date_due | date: "%b %d, %Y"}}</span></li>
<li><label>Ship by: </label><span class="highlight">{{ order.shipping_method_name }}</span></li>
</ul>
</div>
</div>
{% if order.show_notes_on_worksheet %}
{% if order.production_notes.size > 0 %}
<div id="header_order_notes">
<h3>Customer Notes</h3>
{% for note in order.production_notes %}
<div id="customer_order_notes">
{% if note.note_cat == "history" && note.message != blank %}
<p>{{ note.created_at | date: "%b %d, %Y %I:%M %p"}} - {{ note.user_name }} - {{ note.message }} </p>
{% else %}
<p>{{ note.created_at | date: "%b %d, %Y %I:%M %p"}} - {{ note.user_name }} - {{ note.content }} </p>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% endif %}
{% if order.invoice_note %}
<div id="header_order_notes">
<h3>Order notes</h3>
<p>{{ order.formatted_invoice_note }}</p>
</div>
Custom Code
Add/replace the code in red to the default code shown above as follows:
<div id="header_order_details_2">
<ul>
<li><label>Order date: </label>{{ order.date_ordered | date: "%b %d, %Y" }}</li>
<li><label>Due date: </label><span class="highlight">{{ order.date_due | date: "%b %d, %Y"}}</span></li>
<li><label>Ship by: </label><span class="highlight">{{ order.shipping_method_name }}</span></li>
</ul>
</div>
</div>
{% if order.show_notes_on_worksheet %}
{% if order.production_notes.size > 0 %}
<div id="header_order_notes">
<h3>Internal Notes</h3>
{% for note in order.production_notes %}
<div id="customer_order_notes">
{% if note.note_cat == "history" && note.message != blank %}
<p>{{ note.created_at | date: "%b %d, %Y %I:%M %p"}} - {{ note.user_name }} - {{ note.message }} </p>
{% else %}
<p>{{ note.created_at | date: "%b %d, %Y %I:%M %p"}} - {{ note.user_name }} - {{ note.content }} </p>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% if customer.internal_notes.size > 0 %}
<div id="header_order_notes">
<h3>Customer Notes</h3>
{% for note in customer.internal_notes %}
<div id="customer_order_notes">
{% if note.note_cat == "history" && note.message != blank %}
<p>{{ note.created_at | date: "%b %d, %Y %I:%M %p"}} - {{ note.user_name }} - {{ note.message }} </p>
{% else %}
<p>{{ note.created_at | date: "%b %d, %Y %I:%M %p"}} - {{ note.user_name }} - {{ note.content }} </p>
{% endif %}
</div>
{% endfor %}
</div>
{% endif %}
{% endif %}
{% if order.invoice_note %}
<div id="header_order_notes"><h3>Order notes</h3><p>{{ order.formatted_invoice_note }}</p></div>
Comments
0 comments
Please sign in to leave a comment.