Rechnungen: In Kopf anzeigen, in welchen SEPA-Exporten der Beleg enthalten ist
[kivitendo-erp.git] / SL / DB / Invoice.pm
index 76531e9..54da8fa 100644 (file)
@@ -39,6 +39,12 @@ __PACKAGE__->meta->add_relationship(
     column_map      => { id => 'ar_id' },
     manager_args    => { with_objects => [ 'sepa_export' ] }
   },
+  sepa_exports      => {
+    type            => 'many to many',
+    map_class       => 'SL::DB::SepaExportItem',
+    map_from        => 'ar',
+    map_to          => 'sepa_export',
+  },
   custom_shipto     => {
     type            => 'one to one',
     class           => 'SL::DB::Shipto',