Hello,
We use sales orders with multiple locations (each item line from the item sublist can have a different location).
However, when we use the Advanced PDF HTML Template and iterate through the item's locations, we can only get the location name, not the addresses. If we display the location addresses, it will only display the first line location address.
Goal: We want to iterate through the items locations to display the second location addresses fields on the header of the PDF.
Ex: It always displays the same city even if the city is different in each location in the SO:
<#list record.item as item>
<p>${item.location}</p> <!— Correct: will display the correct item location name —>
<p>${item.location.city}</p> <!— Not Correct: will always display the item's location first city even if the location is different from this item —>
</#list>
Is a script necessary ? and if so, how to script should look like ?
Please let me know if you need more information.
Thanks!