From: Alan Knowles Date: Wed, 25 Feb 2015 06:25:35 +0000 (+0800) Subject: UpdateDatabase.php X-Git-Url: http://git.roojs.org/?p=Pman.Xtuple;a=commitdiff_plain;h=57ca326d978f1ae742122b04443b570c150dec21 UpdateDatabase.php --- diff --git a/UpdateDatabase.php b/UpdateDatabase.php index c48ef731..462b9507 100644 --- a/UpdateDatabase.php +++ b/UpdateDatabase.php @@ -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');