Results 1 to 2 of 2

Thread: Account Quotes - Listing all accounts

  1. #1
    rustinp77 is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Mid-Atlantic, US
    Posts
    178

    Default Account Quotes - Listing all accounts *SUBPANEL/HELP

    I am attempting to create a subpanel for Quotes under Accounts. I was able to create this subpanel however, it is not displaying a title nor is it displaying a correct relationship between each-other.

    1.) How can I fix the subpanel to display the Quotes title correctly?

    2.) How can I fix the subpanel to display only account related quotes?


    layoutdefs.ext.php
    PHP Code:
    'quotes' => array(
                
    'order' => 120,
                
    'module' => 'Quotes',
                
    'subpanel_name' => 'default',
                
    'get_subpanel_data' => 'quotes',
                
    'title_key' => 'LBL_QUOTES_SUBPANEL_TITLE',
                
    'top_buttons' => array(
                    array(
    'widget_class' => 'SubPanelTopCreateButton'),
                    array(
    'widget_class' => 'SubPanelTopSelectButton''mode'=>'MultiSelect')
                ),
            ), 

    vardefs.php
    PHP Code:
    'quotes' =>
      array (
          
    'name' => 'quotes',
        
    'type' => 'link',
        
    'relationship' => 'account_quotes',
        
    'source' => 'non-db',
        
    'vname' => 'LBL_QUOTES',
      ), 
    PHP Code:
    'account_quotes' => array(
          
    'lhs_module'=> 'Accounts',
          
    'lhs_table'=> 'accounts',
          
    'lhs_key' => 'id',
          
    'rhs_module'=> 'Quotes',
          
    'rhs_table'=> 'quotes',
          
    'rhs_key' => 'accountid',
          
    'relationship_type'=>'one-to-many'
      
    ), 

    Sincerely,
    Rustin Phares


    * displays subpanel with blank title; displays subpanel with all quotes, not directly related to specific account being viewed
    Last edited by rustinp77; 2007-05-08 at 04:27 PM.

  2. #2
    rustinp77 is offline Sugar Community Member
    Join Date
    May 2007
    Location
    Mid-Atlantic, US
    Posts
    178

    Default Re: Account Quotes - Listing all accounts

    After rebuilding the relationship through rebuild, everything worked fine.

    I will be doing some bug-fixes and custom modifications to Products & Quotes module and will provide an updated relaase available to the community.

    Thanks for the help!


    Sincerely,

    Rustin Phares

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Opportunities vs. Leads vs. Accounts
    By jasolution in forum General Discussion
    Replies: 5
    Last Post: 2011-01-13, 02:01 AM
  2. Accounts, Contacts and B2C implementations
    By organi in forum General Discussion
    Replies: 46
    Last Post: 2010-05-23, 07:04 PM
  3. Replies: 1
    Last Post: 2006-09-11, 03:38 PM
  4. Showing Member Organizations of Account
    By Lennu in forum General Discussion
    Replies: 0
    Last Post: 2006-03-27, 12:31 PM
  5. Products associted with Quotes and Accounts
    By rbemrose in forum General Discussion
    Replies: 0
    Last Post: 2005-06-14, 08:22 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •