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 '';
}
Bookmarks