How do you sort child records in a PDF template?
Eg : I want to order the items of default sales order on the name.
doc : https://docs.espocrm.com/user-guide/printing-to-pdf/
possibly you can use the index helper of handlebars
but it is not clear how that would work in this context.
Thank you,
Eg : I want to order the items of default sales order on the name.
Code:
<!-- {{#each itemList}} --> <tr> <td>{{order}}</td> <td>{{name}}</td> <td>{{quantity}}</td> </tr> <!-- {{/each}} -->
possibly you can use the index helper of handlebars
but it is not clear how that would work in this context.
Thank you,
Comment