You can use the following variables to include the name of a production team member assigned to a line item in the Worksheet Template.
- item.has_production_team_member?
- item.production_team_member
Here is an example of how you can modify the default Worksheet Template to include the production team member name for each line item in the order:
Default Code
{% for item in order.main_items %}
<div class="lineitem">
<h2 class="heading_lineitem">
<span style="padding:0 10px;">ITEM: {{ item.number }}</span>
{% if (item.supplier_product) and (item.is_not_freeform?) %}({{ item.supplier_product.product_code }}) {% endif %}{{ item.product_name }} {% unless item.product_based? %}{% if item.has_extra_options? %}: {% endif %}{{ item.extra_options}}{%endunless%}
</h2>
Custom Code
Add the code in red to the default code shown above as follows:
{% for item in order.main_items %}
<div class="lineitem">
<h2 class="heading_lineitem">
<span style="padding:0 10px;">ITEM: {{ item.number }}</span>
{% if (item.supplier_product) and (item.is_not_freeform?) %}({{ item.supplier_product.product_code }}) {% endif %}{{ item.product_name }} {% unless item.product_based? %}{% if item.has_extra_options? %}: {% endif %}{{ item.extra_options}}{% endunless %}
{% if item.has_production_team_member? %}
<span style="padding:0 10px; float:right;"><label>Assigned To: </label>{{ item.production_team_member }}</span>
{% else %}
<span style="padding:0 10px; float:right;">Unassigned</span>
{% endif %}
</h2>
Result
Still have questions? In your DecoNetwork Admin, use the Universal Search box in the top bar to find more related help guides. Need more help? Click the icon next to the search box to open the help menu and submit a support ticket. Our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.