Manufacture Sku on PO

Hello,
I have the custom template for POs however is there a way to have the Manufacture Sku on the POs instead of the Vendor ID? I was able to change the code to have Manufacture Sku on the page but can't get it to take the Manufacture Sku and put it on our POs
Post edited by Adrian Samuel on
11 comments
I also need this, and I assume it's fairly easy copy and paste chunk of code if anyone can provide the instruction.
I also don't know why this isn't a true/false option.
@TheUltimateDeckShop please refer to this thread for details --> https://community.lightspeedhq.com/en/discussion/comment/15857#Comment_15857.
Thank you. Seems easy enough, but for some reason, that's not returning any value for me. It's leaving the SKU blank.
<tr>
<td>{{OrderLine.Item.manufacturer.sku}}</td>
<td>{{OrderLine.Item.upc}}</td>
<td>{{OrderLine.Item.description}}</td>
<td>{{OrderLine.quantity}}</td>
<td class="money">{{OrderLine.originalPrice|money}}</td>
<td class="money">{{OrderLine.total|money}}</td>
</tr>
You don't appear to have referenced the variable correctly. Try OrderLine.Item.manufacturerSku instead. Check case sensitivity and take out that extra dot/period. 😀
I had tried both of those things, but I'll try again. In the original thread you point me to, it had .Sku.
I guess I tried all the combos EXCEPT no period, but with capital S. Haha, that worked. Thanks man!
No problem! My bad on the extra period typo in my other post. Glad it's working!
Is there a way to get the item notes to generate onto the PO?
I have the code below typed up but it is not working, the Note column comes up on the PO but the notes themselves will not show up on the PO
</thead>
{% for OrderLine in Order.OrderLines.OrderLine %}
</td>
<td>{{OrderLine.Item.manufacturerSku}} </td>
<td>{{OrderLine.Item.note}}</td>
<td>{{OrderLine.Item.description}}</td>
<td>{{OrderLine.quantity}}</td>
<td class="money">{{OrderLine.originalPrice|money}}</td>
<td class="money">{{OrderLine.total|money}}</td>
</tr>
</tr>
{% endfor %}
The Note element isn't part of the base Item fieldset. It's an additional relation. Described here --> https://developers.lightspeedhq.com/retail/endpoints/Item/. So without implementing an API-type function I'm not sure if a display template can really accomplish this. If anyone from Lightspeed would like to comment as well that'd be great. 😀
What if I wanted to add it in as a custom field could it work that way
@gregarican
We need a way to list a selected finish to send to our vendors that shows up on our POs but next to each item, not just in the general notes on the PO