projects
/
Pman.Xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf56e68
)
DataObjects/Period.php
author
Alan Knowles
<alan@roojs.com>
Wed, 25 Feb 2015 06:24:15 +0000
(14:24 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 25 Feb 2015 06:24:15 +0000
(14:24 +0800)
DataObjects/Period.php
patch
|
blob
|
history
diff --git
a/DataObjects/Period.php
b/DataObjects/Period.php
index
f421c90
..
27daeac
100644
(file)
--- a/
DataObjects/Period.php
+++ b/
DataObjects/Period.php
@@
-93,6
+93,8
@@
class Pman_Xtuple_DataObjects_Period extends DB_DataObject
// should be configurable somewhere...
$db = substr($this->database(),-2);
+ $start = date('Y') -1;//
+
switch($db) {
case 'au':
$start = '2006';
@@
-107,7
+109,6
@@
class Pman_Xtuple_DataObjects_Period extends DB_DataObject
case 'zh':
case 'my':
- $start = date('Y') -1;//
//HK: 1 May - 30 Apr
//SG: 1 Oct - 30 Sept
$sdate = '-05-01';