Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Gendoc get the name of account_id
#1
Hello,

I create document template to ticket. In my CRM the tickets are "Related To" contact (and not organization).
In that template I would like to embed also the contact organization name.

It let me embed {Contacts.account_id} which represent the internal number of organization.

Is there a way to embed the name of the organization, and any other data of this specific "account_id"


Thanks
Reply
#2
If I remember correctly, to go "down" more levels in GenDoc you use {foreach}, so the first thing I would try is something like

{foreach Contacts}
{foreach Accounts}
{accountname}
{/foreach}
{/foreach}
Joe
TSolucio
Reply
#3
(05-05-2019, 10:37 AM)joebordes Wrote: If I remember correctly, to go "down" more levels in GenDoc you use {foreach}, so the first thing I would try is something like

{foreach Contacts}
{foreach Accounts}
{accountname}
{/foreach}
{/foreach}


It fail, adding this code cause GenDoc to create partial odt until the code.
I tried to create simple example in using user demo in https://demo.coreboscrm.com/
but this user can't create ticket "You are not permitted to execute this Operation"

Please note that there is 1:1 relation between Ticket to Contact and between Contact to Account.
Reply
#4
If you read the documentation it says to do this when it needs to go from Inventory Details to products, please read that part of the documentation and make sure
Joe
TSolucio
Reply
#5
(05-05-2019, 04:28 PM)joebordes Wrote: If you read the documentation it says to do this when it needs to go from Inventory Details to products, please read that part of the documentation and make sure

I guess you mean this documentation:
http://corebos.com/documentation/lib/exe/fetch.php?media=gendoc:gendocdocumentation.odt

So in may case there is a way to do it ?
Reply
#6
I read the documentation and there is a paragraph that does something similar going from an Invoice to the related list of Contacts, but I am not an expert of GenDoc, I redirected your question to people with more knowledge than me about it, see if we can get an answer
Joe
TSolucio
Reply
#7
(05-06-2019, 04:26 PM)joebordes Wrote: I read the documentation and there is a paragraph that does something similar going from an Invoice to the related list of Contacts

Yes I read it too. Its not the same case. I my case it one link more.
Reply
#8
try it like this and let us know

Code:
{foreach Contacts}
{foreach Accounts}
{Accounts.accountname}
{/foreach}
{/foreach}
Joe
TSolucio
Reply
#9
Kiko fixed this issue today. Thanks for informing!

https://github.com/tsolucio/corebos/commit/7d625ddb083c66751f1d755b630a25e9ea90b800
Joe
TSolucio
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)