]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/InvoiceItem.pm
Vergessen AuditTrail als DB-Objekt zu löschen
[kivitendo-erp.git] / SL / DB / InvoiceItem.pm
index 44c121e942c145630ae5a61ae9cbb6ea4acc4f50..8f9a4dde7bae629beb2df365c38f0786c7a0a793 100644 (file)
@@ -7,23 +7,16 @@ use SL::DB::Helper::CustomVariables (
   sub_module  => 'invoice',
   cvars_alias => 1,
   overloads   => {
-    parts_id => 'SL::DB::Part',
+    parts_id => {
+     class => 'SL::DB::Part',
+     module => 'IC',
+    },
   },
 );
 
 __PACKAGE__->meta->add_relationship(
-  part => {
-    type         => 'one to one',
-    class        => 'SL::DB::Part',
-    column_map   => { parts_id => 'id' },
-  },
-  price_factor_obj => {
-    type           => 'one to one',
-    class          => 'SL::DB::PriceFactor',
-    column_map     => { price_factor_id => 'id' },
-  },
   unit_obj       => {
-    type         => 'one to one',
+    type         => 'many to one',
     class        => 'SL::DB::Unit',
     column_map   => { unit => 'name' },
   },