Part: columns assembly und (inventory|expense|income)_accno_id entfernt
[kivitendo-erp.git] / SL / DB / MetaSetup / Part.pm
index 7e9eedc..65cd85d 100644 (file)
@@ -15,14 +15,11 @@ __PACKAGE__->meta->columns(
   description        => { type => 'text' },
   drawing            => { type => 'text' },
   ean                => { type => 'text' },
-  expense_accno_id   => { type => 'integer' },
   formel             => { type => 'text' },
   gv                 => { type => 'numeric', precision => 15, scale => 5 },
   has_sernumber      => { type => 'boolean', default => 'false' },
   id                 => { type => 'integer', not_null => 1, sequence => 'id' },
   image              => { type => 'text' },
-  income_accno_id    => { type => 'integer' },
-  inventory_accno_id => { type => 'integer' },
   itime              => { type => 'timestamp', default => 'now()' },
   lastcost           => { type => 'numeric', precision => 15, scale => 5 },
   listprice          => { type => 'numeric', precision => 15, scale => 5 },
@@ -66,21 +63,6 @@ __PACKAGE__->meta->foreign_keys(
     key_columns => { buchungsgruppen_id => 'id' },
   },
 
-  expense_account => {
-    class       => 'SL::DB::Chart',
-    key_columns => { expense_accno_id => 'id' },
-  },
-
-  income_account => {
-    class       => 'SL::DB::Chart',
-    key_columns => { income_accno_id => 'id' },
-  },
-
-  inventory_account => {
-    class       => 'SL::DB::Chart',
-    key_columns => { inventory_accno_id => 'id' },
-  },
-
   partsgroup => {
     class       => 'SL::DB::PartsGroup',
     key_columns => { partsgroup_id => 'id' },