UpdateDatabase.php
authorAlan Knowles <alan@roojs.com>
Wed, 25 Feb 2015 06:25:35 +0000 (14:25 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 25 Feb 2015 06:25:35 +0000 (14:25 +0800)
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');