Doppelter foreign key auf oe wieder entfernt
[kivitendo-erp.git] / SL / DB / MetaSetup / DeliveryOrderItem.pm
index 6bdfe43..1e9a52b 100644 (file)
@@ -32,6 +32,7 @@ __PACKAGE__->meta->setup(
     marge_price_factor => { type => 'numeric', default => 1, precision => 5, scale => 15 },
     itime              => { type => 'timestamp', default => 'now()' },
     mtime              => { type => 'timestamp' },
+    pricegroup_id      => { type => 'integer' },
   ],
 
   primary_key_columns => [ 'id' ],
@@ -54,6 +55,11 @@ __PACKAGE__->meta->setup(
       key_columns => { price_factor_id => 'id' },
     },
 
+    pricegroup => {
+      class       => 'SL::DB::Pricegroup',
+      key_columns => { pricegroup_id => 'id' },
+    },
+
     project => {
       class       => 'SL::DB::Project',
       key_columns => { project_id => 'id' },