You can use the following variables to show notes for the customer for a related artwork approval in the Order Template.
- artwork.has_production_notes?: the condition that the artwork approval has notes to the customer associated with it.
- artwork.production_notes: the list of notes to the customer added to an artwork approval.
- {{ note.created_at | date: "%d/%b/%Y" }}: the date on which a note to the customer in artwork approval was created.
- {{ note.content }}: the content of a note to the customer in an artwork approval.
Here is an example of how you can modify the default Order Template to show artwork approval notes to the customer:
Default Code
<div class="artwork_detail">
<h3>Details</h3>
<ul>
<li><label>Process</label><span>{{ job.process_name }}</span></li>
<li><label>Dimensions</label><span>{{ job.product_dimensions }}</span></li>
{% if job.show_digitization? %}
<li><label>Est. Stitch Count</label><span>{{ job.get_digitization_stitch_count }}</span></li>
<li><label>Thread Colors</label>{{ job.get_digitization_thread_chart_colors }}</li>
{% endif %}
</ul>
</div>
</div>
{% endfor %}
</div>
{% endif %}
</div>
Custom Code
Add the code in red to the default code shown above as follows:
<div class="artwork_detail">
<h3>Details</h3>
<ul>
<li><label>Process</label><span>{{ job.process_name }}</span></li>
<li><label>Dimensions</label><span>{{ job.product_dimensions }}</span></li>
{% if job.show_digitization? %}
<li><label>Est. Stitch Count</label><span>{{ job.get_digitization_stitch_count }}</span></li>
<li><label>Thread Colors</label>{{ job.get_digitization_thread_chart_colors }}</li>
{% endif %}
</ul>
</div>
</div>
{% endfor %}
</div>
{% endif %}
<div>
{% if artwork.has_production_notes? %}
<h2>Notes</h2>
<div class="in_artwork" style="display:block;page-break-inside:avoid;">
<h3><i style="display:inline-block; width:100px;">Date</i>| Notes</h3>
{% for note in artwork.production_notes %}
<div>
<ul>
<li>
<i style="display:inline-block; width:110px;">{{ note.created_at | date: "%d/%b/%Y" }}:</i> {{ note.content }}<br><br>
</li>
</ul>
</div>
{% endfor %}
</div>
{% endif %}
</div>
</div>
Comments
0 comments
Please sign in to leave a comment.