You can use the purchase_order.supplier.desc variable to include the supplier description in the Purchase Order Template.
Here is an example of how you can modify the default Purchase Order Template to show the supplier description:
Default Code
<div class="order">
<ul>
<li><label>Date</label><span>{{ purchase_order.created_at | date: "%d/%b/%Y" }}</span></li>
<li><label>Reference</label><span>{{ purchase_order.reference }}</span></li>
<li><label>Supplier</label><span>{{ purchase_order.supplier_name }}</span></li>
<li><label>Supplier Invoice #</label><span>{{ purchase_order.vendor_invoice_number }}</span></li>
<li><label>Supplier Tracking #</label><span>{{ purchase_order.vendor_tracking_number }}</span></li>
{% if purchase_order.show_supplier_address? %}
<li><label>Supplier Address</label><span>{{ purchase_order.supplier_address }}</span></li>
{% endif %}
<li><label>Attention to</label><span>{{ purchase_order.attention_to }}</span></li>
</ul>
</div>
Custom Code
Add the code in red to the default code shown above as follows:
<div class="order">
<ul>
<li><label>Date</label><span>{{ purchase_order.created_at | date: "%d/%b/%Y" }}</span></li>
<li><label>Reference</label><span>{{ purchase_order.reference }}</span></li>
<li><label>Supplier</label><span>{{ purchase_order.supplier_name }}</span></li>
<li><label>Supplier Description</label><span>{{ purchase_order.supplier_desc }}</span></li>
<li><label>Supplier Invoice #</label><span>{{ purchase_order.vendor_invoice_number }}</span></li>
<li><label>Supplier Tracking #</label><span>{{ purchase_order.vendor_tracking_number }}</span></li>
{% if purchase_order.show_supplier_address? %}
<li><label>Supplier Address</label><span>{{ purchase_order.supplier_address }}</span></li>
{% endif %}
<li><label>Attention to</label><span>{{ purchase_order.attention_to }}</span></li>
</ul>
</div>
Result
Still have questions? Use the Search Tool at the top of the page to find more related guides. Need help? Click the icon to submit a support ticket – our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.