]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Order.pm
Hilfsmethode zum Linken von einem Record auf ein anderes
[mfinanz.git] / SL / DB / Order.pm
index 2dd29c33a8be7c031e5804b9ec0068385ca06790..8d321661d90868064b8b35e57138cb11d0245c15 100644 (file)
@@ -1,5 +1,6 @@
 package SL::DB::Order;
 
+use utf8;
 use strict;
 
 use SL::RecordLinks;
@@ -16,7 +17,17 @@ __PACKAGE__->meta->add_relationship(
     manager_args => {
       with_objects => [ 'part' ]
     }
-  }
+  },
+  periodic_invoices_config => {
+    type                   => 'one to one',
+    class                  => 'SL::DB::PeriodicInvoicesConfig',
+    column_map             => { id => 'oe_id' },
+  },
+  periodic_invoices        => {
+    type                   => 'one to many',
+    class                  => 'SL::DB::PeriodicInvoice',
+    column_map             => { id => 'oe_id' },
+  },
 );
 
 __PACKAGE__->meta->initialize;
@@ -98,6 +109,6 @@ Nothing here yet.
 
 =head1 AUTHOR
 
-  Sven Schöling <s.schoeling@linet-services.de>
+Sven Schöling <s.schoeling@linet-services.de>
 
 =cut