Results 1 to 3 of 3

Thread: Optional link between Invoice-Quotes or Invoice-Proposal

  1. #1
    ElGato is offline Member
    Join Date
    Nov 2009
    Posts
    10

    Default Optional link between Invoice-Quotes or Invoice-Proposal

    Hello!

    I need link Invoices with Quotes or with Proposal.
    I mean Invoice must be linked with Quote or with Proposal. (not both, but one of these links must present )


    What is the best/correct way to make that optional link?

    I have 2 suggestions:
    1. I can add 2 non-required fields to Invoice: quote and proposal. And add JavaScript code for testing these fields before submit. The test is: we should have only 1 filled field (not 1 and not 2).

    How can I add that JavaScript code?

    2. I can add 'link' and 'link_type' fields to Invoice. 'link_type' contain Quote/Proposal flag and 'link' contain correspond object id (QuoteID or ProposalID)

    Thanks for any help.

  2. #2
    mvngti is offline Sugar Community Member
    Join Date
    Oct 2007
    Location
    South Africa
    Posts
    510

    Default Re: Optional link between Invoice-Quotes or Invoice-Proposal

    Create a flex relate field, and then put some customCode on the parent_type field so it has only the two modules as options instead of all modules.

    M
    --


    Marnus van Niekerk

    There are only 10 types of people in the world
    those who can read binary and those who don't

    Modules:
    CE Teams - Upgrade safe teams module for Community Edition
    FieldACL - Field Level Access Control for Community Edition
    EditLogicHooks - Create and edit Logic Hooks from the Admin GUI
    FlexibleChartDashlet - Display any data in a Dashlet Chart
    DocumentThumbnails - Thumbnails for Documents module

    Many questions can be answered by reading the Developers Manual

  3. #3
    ElGato is offline Member
    Join Date
    Nov 2009
    Posts
    10

    Default Re: Optional link between Invoice-Quotes or Invoice-Proposal

    Thanks! That is exactly what I need!

    I case someone have same problem, here is details about module restriction
    http://apps.sugarcrm.com/forums/showthread.php?t=33719

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Quotes: "Save as invoice"-button
    By otto.lang in forum Developer Help
    Replies: 2
    Last Post: 2008-09-02, 07:21 AM
  2. Invoice.php
    By francisco.daza in forum Developer Help
    Replies: 0
    Last Post: 2008-07-17, 08:55 PM
  3. Invoice Management
    By jams in forum Installation and Upgrade Help
    Replies: 2
    Last Post: 2007-04-12, 05:16 AM
  4. Replies: 1
    Last Post: 2006-11-24, 02:26 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
  •