Contacts names in PDF template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ChrisChristou
    Junior Member
    • May 2017
    • 13

    Contacts names in PDF template

    Hi i have been trying to prints related contacts name on a pdf template with no success.

    STEPS.

    - fresh espoCRM installation (v 5.2.5 )
    - create few Contacts
    - create an Opportunity and add the contacts to it.
    - create a Template and add contactsNames
    - print Opportunity to PDF

    Tried to iterate the value also tried to print it as is.

    How can contacts names can be printed on pdf template?
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    Hi,

    Currently it's not supported. Planned for the future. It will be documented how to.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment

    • ChrisChristou
      Junior Member
      • May 2017
      • 13

      #3
      Hi yuri thanks for the implementation. there is a new issue though.

      Now we are able to iterate through the contactsNames but the data inside are duplicated.
      Ive tracked the issue down in
      PHP Code:
        Espo\Core\Htmlizer 
      
      it adds the extra keys with the _RAW appended to them in "getDataFromEntity()"

      the handlebars has no helper to filter those out and there is not much to do in the pdf template to fix this issue.

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

        Comment


        • ChrisChristou
          ChrisChristou commented
          Editing a comment
          Thanks didnt recheck the documentation my bad.
      Working...