]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Part.pm
Bug 1597 - Report Lagerbestand wirft Fehler, wenn Artikelnummer ausgeblendet werden...
[mfinanz.git] / SL / DB / Part.pm
index 8ec7b3b1bff99223de7452ab60f2ea8ee3df1afa..fd55e02072e7653960fa20fbb599e761d39ae1fa 100644 (file)
@@ -31,6 +31,11 @@ __PACKAGE__->meta->add_relationships(
     class        => 'SL::DB::PriceFactor',
     column_map   => { price_factor_id => 'id' },
   },
+  prices         => {
+    type         => 'one to many',
+    class        => 'SL::DB::Price',
+    column_map   => { id => 'parts_id' },
+  },
 );
 
 __PACKAGE__->meta->initialize;