PDF Calculation - Sum of related attributes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • boognish
    Junior Member
    • Nov 2020
    • 22

    PDF Calculation - Sum of related attributes

    I would like to know how to handle "sum" calculations inside PDF templates.

    For example - the below lists out "name" and sundryPrice" for a record with one-to-many "sundries" relationship:

    HTML Code:
    {{#each sundries}}
        {{name}} - R{{sundryPrice}}<br>
    {{/each}}
    All I have left is to add the prices together, but not sure about the syntax from within the PDF template editor. Any help would be greatly appreciated!
Working...