Espo already extends handlebars with helpers :
https://github.com/espocrm/espocrm/b...helper.js#L110
but these are only available in views.
Suggested is to make those available for email templates / pdf generation as well.
It would enhance the template engine and allow for eg filtering, for example: print only orders for an account that have been paid:
etc
https://github.com/espocrm/espocrm/b...helper.js#L110
but these are only available in views.
Suggested is to make those available for email templates / pdf generation as well.
It would enhance the template engine and allow for eg filtering, for example: print only orders for an account that have been paid:
Code:
<!-- {{#each items}}--> {{#ifEqual pay_status "paid"}} You paid on {{pay_date}} {{else}} You did not pay yet. {{/ifEqual}}
Comment