AnsweredAssumed Answered

Showing account parent in quotes

Question asked by Robin Thomas on Mar 23, 2017

Hi everyone,


we want to show the parent company of the billing company in Quotes.

We found this post: HOWTO: Grab fields from a related record without Sugar Logic « Sugar Developer Blog – SugarCRM 


And tried with:

$dictionary['Quote']['fields']['account_belongs_to_c'] = array(
    'name' => 'account_belongs_to_c',
    'id_name' => 'account_id',
    'type' => 'relate',
    'rname' => 'parent_id',
    'vname' => 'LBL_PARENT_ACCOUNT',
    'link' => 'quotes_billto_accounts',
    'module' => 'Accounts',
    'source' => 'non-db',
    'dbType' => 'non-db',
    'studio' => 'visible',

which is the closest I can get. This displays the proper ID as the link text but links to the billto account. I tried changing both id_name and rname to multiple other fields, but I can't get it to work properly.


Has anybody done something like this before?


Thanks in advance.