projects
/
Pman.Xtuple
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b646c2
)
DataObjects/Period.php
author
Alan Knowles
<alan@roojs.com>
Wed, 25 Feb 2015 06:23:53 +0000
(14:23 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 25 Feb 2015 06:23:53 +0000
(14:23 +0800)
DataObjects/Period.php
patch
|
blob
|
history
diff --git
a/DataObjects/Period.php
b/DataObjects/Period.php
index
a62062e
..
718b154
100644
(file)
--- a/
DataObjects/Period.php
+++ b/
DataObjects/Period.php
@@
-78,8
+78,13
@@
class Pman_Xtuple_DataObjects_Period extends DB_DataObject
function initDatabase($roo)
{
+
+ if ($this->count()) {
+ echo "SKIP - already have periods\n";
+ return;
+ }
+ $p->initPeriods($roo);
- $this->initPeriods($roo);
}