Results 1 to 2 of 2

Thread: stop autopopulate on ship to in qoutes page

  1. #1
    shooga is offline Member
    Join Date
    May 2008
    Posts
    6

    Default stop autopopulate on ship to in qoutes page

    When I select a new account in the 'bill to' section of quotes, the 'ship to' section of the quotes page is autopopulated. I'm trying to stop that but I can't find the script that is doing it. Does anyone know what page that works on?

    Second, I'm trying to find the script that deals with finding the list price of an item after you put the product name in.

    Third, I'm trying to find the script that deals with adding the line items on the quotes page.

    Someone please help

  2. #2
    collinlee is offline Sugar Team Member
    Join Date
    Sep 2006
    Posts
    187

    Default Re: stop autopopulate on ship to in qoutes page

    >> Hi, I'm assuming this is for 5.x versions

    When I select a new account in the 'bill to' section of quotes, the 'ship to' section of the quotes page is autopopulated. I'm trying to stop that but I can't find the script that is doing it. Does anyone know what page that works on?

    >> The billing_account_name entry in the modules/Quotes/metadata/editviewdefs.php file contains some parameters that are used when the EditView.tpl file is being constructed. This is eventually passed along to QuickSearchDefaults.php (see getQSAccount method). If you don't want any auto-population, you can

    1) copy the file to custom/modules/Quotes/metadata directory

    2) change the billing_account_name_entry from:

    array('name'=>'billing_account_name', 'displayParams'=>array('key'=>array('billing', 'shipping'), 'copy'=>array('billing', 'shipping'), 'billingKey'=>'billing', 'shippingKey'=>'shipping', 'copyPhone'=>false, 'required'=>true)),

    to

    array('name'=>'billing_account_name', 'displayParams'=>array('key'=>array('billing', 'shipping'), 'required'=>true)),

    3) remove cache/modules/Quotes/EditView.tpl file or go to Admin->Quick Repair->Rebuild .tpl files


    Second, I'm trying to find the script that deals with finding the list price of an item after you put the product name in.

    >> Here, the product line items are created dynamically along with the quicksearch code. modules/Quotes/quotes.js is where you'll find the addRow function that handles creating a new row for product line items. There is a definition for the post_onblur_function

    "post_onblur_function" : "set_after_sqs"

    The set_after_sqs method is in modules/Quotes/EditView.js


    Third, I'm trying to find the script that deals with adding the line items on the quotes page.

    >> See the comments on the second point above about the addRow function

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Speeding up page loads over SSL
    By mattn in forum Developer Help
    Replies: 4
    Last Post: 2010-12-21, 06:20 AM
  2. CarouselCRM Installation
    By StevenE in forum Installation and Upgrade Help
    Replies: 0
    Last Post: 2007-08-30, 08:16 AM
  3. External logining page
    By marcinand in forum Help
    Replies: 6
    Last Post: 2005-05-06, 06:00 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
  •