Results 1 to 2 of 2

Thread: PDF Form Module for Accounts

  1. #1
    rbarrero is offline Sugar Community Member
    Join Date
    Aug 2005
    Posts
    21

    Default PDF Form Module for Accounts

    Hi guys...

    I recently developed a self-contained "Invoice" form that pulls Account data and populates said data into a downloadable PDF.

    Now, here is what I'd like to develop:
    "Add an Invoice" button to appear, like the Notes, on the account page. Clicking this button would pull the account data from sugar, show the data and the form on the next page. Upon confirmation of all fields, it would run the pdf functions to create the PDF and then store all this relevant Invoice data into a new table. It might also save the actual PDF into Sugar for later use.

    Where is the documentation to achieve this? Are there any 'sample' modules I can dissect?

    Initially, I would simply like to see my form function properly without storing anything into Sugar's database... so how can I go about this?

    Any help, suggestions, advice would be VERY appreciated.

  2. #2
    ftreml's Avatar
    ftreml is offline Sugar Community Member
    Join Date
    May 2005
    Location
    Vienna, Austria
    Posts
    399

    Default Re: PDF Form Module for Accounts

    1. download the "Sugar Maps" module (http://www.sugarforge.org/projects/timeentry/) to see how to add additional menu items to DetailView of an Account
    2. Link this menu item to your own screen (php script + html template)
    3. Include a button "create pdf" on this screen

    so far it is rather simple. if you want to have it saved in an own table, you will have to write your own sugar module. documentation and examples are here: http://www.sugarforge.org/frs/?group_id=20, and you may try to use the "module builder" http://www.sugarforge.org/projects/modulebuilder/

Thread Information

Users Browsing this Thread

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

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
  •