Merge pull request #37 from kivitendo/2021-delivery-order-controller-8
[kivitendo-erp.git] / SL / DB / MetaSetup / PriceFactor.pm
index 3d0aa77..7060c4d 100644 (file)
@@ -4,40 +4,18 @@ package SL::DB::PriceFactor;
 
 use strict;
 
-use base qw(SL::DB::Object);
+use parent qw(SL::DB::Object);
 
 __PACKAGE__->meta->table('price_factors');
 
 __PACKAGE__->meta->columns(
-  id          => { type => 'integer', not_null => 1, sequence => 'id' },
   description => { type => 'text' },
-  factor      => { type => 'numeric', precision => 5, scale => 15 },
+  factor      => { type => 'numeric', precision => 15, scale => 5 },
+  id          => { type => 'integer', not_null => 1, sequence => 'id' },
   sortkey     => { type => 'integer' },
 );
 
 __PACKAGE__->meta->primary_key_columns([ 'id' ]);
 
-__PACKAGE__->meta->relationships(
-  invoice => {
-    class      => 'SL::DB::InvoiceItem',
-    column_map => { id => 'price_factor_id' },
-    type       => 'one to many',
-  },
-
-  orderitems => {
-    class      => 'SL::DB::OrderItem',
-    column_map => { id => 'price_factor_id' },
-    type       => 'one to many',
-  },
-
-  parts => {
-    class      => 'SL::DB::Part',
-    column_map => { id => 'price_factor_id' },
-    type       => 'one to many',
-  },
-);
-
-# __PACKAGE__->meta->initialize;
-
 1;
 ;