Relationships 'sepa_export_items' in Invoice & PurchaseInvoice
authorMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 30 Apr 2013 12:43:43 +0000 (14:43 +0200)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Tue, 30 Apr 2013 15:21:08 +0000 (17:21 +0200)
SL/DB/Invoice.pm
SL/DB/PurchaseInvoice.pm

index 0d21ef8..09c7f86 100644 (file)
@@ -33,6 +33,12 @@ __PACKAGE__->meta->add_relationship(
     class         => 'SL::DB::Invoice',
     column_map    => { id => 'storno_id' },
   },
+  sepa_export_items => {
+    type            => 'one to many',
+    class           => 'SL::DB::SepaExportItem',
+    column_map      => { id => 'ar_id' },
+    manager_args    => { with_objects => [ 'sepa_export' ] }
+  },
 );
 
 __PACKAGE__->meta->initialize;
index 4228533..f74ee19 100644 (file)
@@ -17,6 +17,12 @@ __PACKAGE__->meta->add_relationship(
     column_map   => { id => 'trans_id' },
     manager_args => { with_objects => [ 'part' ] }
   },
+  sepa_export_items => {
+    type            => 'one to many',
+    class           => 'SL::DB::SepaExportItem',
+    column_map      => { id => 'ap_id' },
+    manager_args    => { with_objects => [ 'sepa_export' ] }
+  },
 );
 
 __PACKAGE__->meta->initialize;