]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Part.pm
Kommentar zu jquery bug #14120 ist nicht mehr notwenidig
[mfinanz.git] / SL / DB / Part.pm
index 1ef2c1b68164724f967d1df8a9057d05cce46e63..94ce4d207d30c5d8602a2ed0f0ff949a384a7004 100644 (file)
@@ -21,16 +21,6 @@ __PACKAGE__->meta->add_relationships(
     class        => 'SL::DB::Assembly',
     column_map   => { id => 'id' },
   },
-  partsgroup                     => {
-    type         => 'one to one',
-    class        => 'SL::DB::PartsGroup',
-    column_map   => { partsgroup_id => 'id' },
-  },
-  price_factor   => {
-    type         => 'one to one',
-    class        => 'SL::DB::PriceFactor',
-    column_map   => { price_factor_id => 'id' },
-  },
   prices         => {
     type         => 'one to many',
     class        => 'SL::DB::Price',
@@ -107,7 +97,6 @@ sub orphaned {
     SL::DB::InvoiceItem
     SL::DB::OrderItem
     SL::DB::Inventory
-    SL::DB::RMAItem
   );
 
   for my $class (@relations) {
@@ -190,6 +179,10 @@ sub get_chart {
   return $charts->{$taxzone}->{$type};
 }
 
+sub long_description {
+  join ' ', grep $_, map $_[0]->$_, qw(partnumber description);
+}
+
 1;
 
 __END__