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