]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/MetaSetup/DeliveryOrderItem.pm
InvoiceItem, OrderItem, DeliveryOrderItem: diverse Fremdschlüssel eingeführt
[mfinanz.git] / SL / DB / MetaSetup / DeliveryOrderItem.pm
index 6bdfe4300c936cf9a41e9e1ccdc90bba500f460d..1e9a52be24e5378a9454345749b4b9d3c706e6b1 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' },