From: <tu...@us...> - 2016-12-02 23:02:35
|
Revision: 7698 http://sourceforge.net/p/web-erp/reponame/7698 Author: turbopt Date: 2016-12-02 23:02:33 +0000 (Fri, 02 Dec 2016) Log Message: ----------- WriteReport.inc: Fix condition needed to support PHP7, reported by Tim. Modified Paths: -------------- trunk/doc/Change.log trunk/reportwriter/WriteReport.inc Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2016-12-02 18:05:25 UTC (rev 7697) +++ trunk/doc/Change.log 2016-12-02 23:02:33 UTC (rev 7698) @@ -1,5 +1,6 @@ webERP Change Log +02/12/16 PaulT: WriteReport.inc: Fix condition needed to support PHP7, reported by Tim. 02/12/16 RChacon: fix and improve code for existent parameters in GLCashFlowsSetup.php. 02/12/16 Exson: Add location code and reference to Work Orders search result in SelectWorkOrder.php. 02/12/16 Exson: Fixed the no users data displayed bug and copy BOM fields error bug in WWW_Users.php and CopyBOM.php. Thanks for shane's report. Modified: trunk/reportwriter/WriteReport.inc =================================================================== --- trunk/reportwriter/WriteReport.inc 2016-12-02 18:05:25 UTC (rev 7697) +++ trunk/reportwriter/WriteReport.inc 2016-12-02 23:02:33 UTC (rev 7698) @@ -361,7 +361,7 @@ case "h": // RPT_GROUP_QUARTER $QtrStrt = intval(($ThisMonth-1)/3)*3+1; $QtrEnd = intval(($ThisMonth-1)/3)*3+3; - if ($QtrEnd==04 OR $QtrEnd==06 OR $QtrEnd==09 OR $QtrEnd==11) { $TotalDays=30; } + if ( $QtrEnd == 4 OR $QtrEnd == 6 OR $QtrEnd == 9 OR $QtrEnd == 11 ) { $TotalDays=30; } $qs = date('Y-m-d', mktime(0,0,0, $QtrStrt, 1, $ThisYear)); $qe = date('Y-m-d', mktime(0,0,0, $QtrEnd, $TotalDays, $ThisYear)); $d = $df.">='".$qs."'"; |