UpdateDatabase.php
[Pman.Xtuple] / UpdateDatabase.php
index c48ef73..462b950 100644 (file)
@@ -207,6 +207,7 @@ class Pman_Xtuple_UpdateDatabase extends Pman_Core_UpdateDatabase
                 
                 'custinfo', // create a base customer based on company.
                 'location', // default warehouse.
+                'period', // adds years and months -1 to +10 from now.
                 
                 // accounts - fixme - we need a better 'base set'
                 // 'costcat' -- fixme - we need to init this..
@@ -304,20 +305,7 @@ class Pman_Xtuple_UpdateDatabase extends Pman_Core_UpdateDatabase
     */
      
     
-    
-    function addExtraYears()
-    {
-        $p = DB_DataObject::Factory('period');
-        if ($p->count()) {
-            echo "SKIP - already have periods\n";
-            return;
-        }
-        $p->initPeriods($this);
-        $p->initPeriods($this);
-        $p->initPeriods($this);
-        $p->initPeriods($this);
-        
-    }
+     
     function addAccounts()
     {
         $ac = DB_DataObject::factory('accnt');