]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Part.pm
DATEV::CSV Bessere wartbarer Aufruf für _format_amount
[mfinanz.git] / SL / DB / Part.pm
index 6ce6ed5b70447fce9662ca7b51916928c02dd921..8036db5325836334814e850b9ddac45b0d6020ff 100644 (file)
@@ -54,6 +54,12 @@ __PACKAGE__->meta->add_relationships(
     query_args      => [ what_done => 'part' ],
     manager_args    => { sort_by => 'itime' },
   },
+  shop_parts     => {
+    type         => 'one to many',
+    class        => 'SL::DB::ShopPart',
+    column_map   => { id => 'part_id' },
+    manager_args => { with_objects => [ 'shop' ] },
+  },
 );
 
 __PACKAGE__->meta->initialize;