]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/InvoiceItem.pm
Vor Fremdschlüsselzuweisung trans_id verwaiste Einträge in orderitems löschen
[kivitendo-erp.git] / SL / DB / InvoiceItem.pm
index 44c121e942c145630ae5a61ae9cbb6ea4acc4f50..016f94575b194db3890e511bdef6fea15a4796f7 100644 (file)
@@ -12,16 +12,6 @@ use SL::DB::Helper::CustomVariables (
 );
 
 __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',
     class        => 'SL::DB::Unit',
@@ -34,4 +24,9 @@ __PACKAGE__->meta->make_manager_class;
 
 __PACKAGE__->meta->initialize;
 
+sub part {
+  # canonial alias for parts.
+  goto &parts;
+}
+
 1;