if condition in PDF templates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • esforim
    Active Community Member
    • Jan 2020
    • 2204

    #16
    Interesting idea! I don't have invoice yet so I keep this in mind for future.

    With regard to the OR, reading the description I'm guessing you need to do it like this:

    {{#ifEqual status "Outstanding" || "Partially Paid"|| "Past Due"}}

    I haven't test but you could just chain it like me, like this:


    {{#ifEqual status "Paid In Full"}}​ paid {{/ifEqual}}​
    {{#ifEqual status "Partially Paid"}}​ paid {{/ifEqual}}​
    {{#ifEqual status "Past Due"}}​ paid, just joking pay up {{/ifEqual}}​

    Comment

    Working...