BasePlus Entity and entityDefs

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • item
    Active Community Member
    • Mar 2017
    • 1476

    BasePlus Entity and entityDefs

    Hello,
    espoCRM 5.7.5

    When we create a basePlus entity, in entityDefs we have :
    PHP Code:
            "meetings": {
                "type": "hasMany",
                "entity": "Meeting",
                "foreign": "parent",
                "layoutRelationshipsDisabled": true
            },
            "calls": {
                "type": "hasMany",
                "entity": "Call",
                "foreign": "parent",
                "layoutRelationshipsDisabled": true,
                "audited": true
            },
            "tasks": {
                "type": "hasChildren",
                "entity": "Task",
                "foreign": "parent",
                "layoutRelationshipsDisabled": true,
                "audited": true
            }, 
    
    but we don't have emails :

    PHP Code:
            "emails": {
                "type": "hasMany",
                "entity": "Email",
                "foreign": "parent",
                "layoutRelationshipsDisabled": true
            }, 
    
    I don't know if it's a bug.
    but I have a problem with pdf template with this entity :

    PHP Code:
    <!-- {{#each meetings}} -->
    
       {{name}}
    
    <!-- {{/each}} --> 
    
    all for {{#each calls, meetings, tasks, emails}} is empty.

    Any tips for have the activities in pdf ? sorry if it's not a bug.

    Regards






    If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​
  • yuri
    Member
    • Mar 2014
    • 8440

    #2
    PDF template doesn't support looping through links. Only if link-multiple field is defined. Documented.
    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

    • item
      Active Community Member
      • Mar 2017
      • 1476

      #3
      Thanks Yuri,
      I have found a way for print-to-pdf activities... like Sales entity QuoteItems.. itemList.
      do you think is a good way ?
      Regards
      If you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks.​

      Comment

      • yuri
        Member
        • Mar 2014
        • 8440

        #4
        HI,

        If you do it in a custom file it must be good.
        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

        Working...