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>
Comments
0 comments
Please sign in to leave a comment.