Results 1 to 4 of 4

Thread: How to create funtionality to add and subtract days within a module?

  1. #1
    Secret_Agent_99's Avatar
    Secret_Agent_99 is offline Senior Member
    Join Date
    Jan 2010
    Location
    Island of Unknown Orgin
    Posts
    27

    Question How to create funtionality to add and subtract days within a module?

    Hi,

    I am in the process to create an Attendance Mangement Module for my company's HRIS system.
    So how would you automatically increment the year-to-date total, and subtract days depending on how many days taken off. I know I don't think its possible within the studio, so how would you begin creating custom code within the file where you can apply custom code to? I am confused how to embedd math functionality in this open-source software.

    Thanks
    Agent 99
    Secret Service

  2. #2
    mapm's Avatar
    mapm is offline Sugar Community Member
    Join Date
    Aug 2006
    Location
    Portugal
    Posts
    239

    Default Re: How to create funtionality to add and subtract days within a module?

    First of all you need to know PHP and SQL.
    If you already know you can begin exploring your new module folder, it should be in SUGAR_INSTALL/modules/MODULE_NAME/

    If it doesn't exit you can create a file called Save.php and try to get some of you module variables and staff to begin to understand how thing go.

    You can get more information in http://developers.sugarcrm.com/

    Hope it helps
    --
    Mário Pereira Martins

    Javali - Administração e Desenvolvimento de Sistemas Informáticos, Lda.
    Madan Parque Edifício VI Campus da FCT/UNL
    Quinta da Torre 2829-516 Caparica Portugal
    Phone: +351 212949666 Fax: +351 212948313
    http://www.javali.pt

  3. #3
    Secret_Agent_99's Avatar
    Secret_Agent_99 is offline Senior Member
    Join Date
    Jan 2010
    Location
    Island of Unknown Orgin
    Posts
    27

    Smile Re: How to create funtionality to add and subtract days within a module?

    Thanks for the help,
    I will be look into that folder and tell you if it works

    Agent 99
    Secret Service

  4. #4
    Secret_Agent_99's Avatar
    Secret_Agent_99 is offline Senior Member
    Join Date
    Jan 2010
    Location
    Island of Unknown Orgin
    Posts
    27

    Default Re: How to create funtionality to add and subtract days within a module?

    Hi,
    How would you go about adding data to the current customized fields from the backend of the php code.
    The file I am modify is the file was customization are supposed to be made.
    /modules/ModuleName/ModuleName.php
    I am want to update the field with the date difference.

    Thanks
    Agent 99
    Secret Service

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to create funtionality to add and subtract days within a module?
    By Secret_Agent_99 in forum General Discussion
    Replies: 2
    Last Post: 2010-01-21, 02:11 AM
  2. Add Funtionality
    By blanik in forum Developer Help
    Replies: 0
    Last Post: 2009-05-21, 08:33 PM
  3. Replies: 0
    Last Post: 2008-12-17, 05:56 AM

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
  •