Results 1 to 3 of 3

Thread: Question on Fiscal Year Definition

  1. #1
    elvispresley99 is offline Sugar Community Member
    Join Date
    Aug 2004
    Posts
    54

    Question Question on Fiscal Year Definition

    We have been asked to run a report (SugarCRM Pro 5.0) and while we have the Fiscal Year defined in the Forecasting module, it does not translate to the reports. In other words, the reports reflect the calendar year, thus throwing our report for Sales off by 3 months. Is there somewhere to define in the report what the Start / End Dates are for the Fiscal Year, thereby allowing a report to be run from 10/1/2008 - 9/30/2009 (for example) rather than for the calendar year of 01/01/2008 - 12/31/2008? I am certain I am missing something, or haven't figured out how to set this up with filters. Any guidance would be much appreciated.

    Thanks!

  2. #2
    sugarcane is offline Sugar Community Member
    Join Date
    Apr 2005
    Location
    Chicago, IL
    Posts
    1,207

    Default Re: Question on Fiscal Year Definition

    Hello,

    Are you trying to set up a report based on the Opportunities module? If this is the case, then you can create your own filter based on dates (date created, expected close date, date modified) and choose the option 'Is Between'. This will allow you to enter the start and end dates that you are interested in (there is no place to define a fiscal year for the reports without customizing the code)
    Intelestream has a great deal of experience hosting and customizing the SugarCRM application. Our company is made up by former employees of SugarCRM, and together we have over 50 years of experience working with the application. To learn more about us, please visit our website at www.intelestream.net or contact us directly at 800-391-4055 or by email at info@intelestream.net

  3. #3
    Kupo is offline Member
    Join Date
    Apr 2009
    Posts
    19

    Default Re: Question on Fiscal Year Definition

    Quite an old thread, but for anyone in future that is interested in the solution to this...

    In Australia the typical financial (or fiscal) year runs from July 1 to June 30 the following year.
    So FY2010 = 1st of July 2009 -> 30th of June 2010.

    to get the reports to display the correct quarter and fiscal year, modify the following file:
    /include/generic/SugarWidgets/SugarWidgetFielddatetime.php

    Code:
    	function displayListquarter(& $layout_def) {
    		$match = array();
            if (preg_match('/(\d{4})-(\d)/', $this->displayListPlain($layout_def), $match)) {
    			
    			// start modify
    			// change the quarters to align to financial/fiscal year instead of calendar year
    			$quarter = (int) $match[2];
    			$fyear = (int) $match[1];
    			
    			if($quarter >= 3) {
    				$fyear++; // change to FY (based on quarter)
    				$quarter = $quarter - 2; // align to match FY quarters
    			}
    			else {
    				$quarter = $quarter + 2; // align to match FY quarters
    			}
    			
    			return "Q".$quarter." ".$fyear;
    			// end modify
    		}
    		return '';
    
    	}

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Question of the year, involves a plane, a conveyer belt, and a thought experiment.
    By WayneSugar in forum Musings, Mullings, and Mutterings
    Replies: 43
    Last Post: 2007-07-09, 10:45 AM
  2. PHP: calculate Fiscal Year; suggestions?
    By wivaku in forum Developer Help
    Replies: 5
    Last Post: 2007-06-20, 11:39 PM
  3. Happy New Year
    By rickcrites in forum Musings, Mullings, and Mutterings
    Replies: 1
    Last Post: 2006-12-31, 04:34 PM
  4. Sugar Professional - after one year?
    By matthewseymour in forum General Discussion
    Replies: 1
    Last Post: 2006-08-20, 05:10 PM
  5. SugarCRM Pro - renew(pay) every year?
    By btauler in forum General Discussion
    Replies: 0
    Last Post: 2006-06-08, 01:51 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
  •