Vendor ID on PO print template

bdstrohsbdstrohs Member Posts: 7

The following code should work to place the vendor id of the product for the corresponding vendor but does not. The if statement always returns false. Alternatively, the vendor id listed on the purchase order would be preferred. Any help would be appreciated.

{% for num in OrderLine.Item.ItemVendorNums.ItemVendorNum %}

{% if num.vendorID == Order.Vendor.vendorID %}

{{num.value}}

{% endif %}

{% endfor %}

Sign In or Register to comment.