]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/Invoice.pm
Merge branch 'master' into currency
[mfinanz.git] / SL / DB / Invoice.pm
index 861c92ae4f7d3dc81738894836815cc5ecd0735a..09c7f86e7d11aa4f75e215c5f44087beac4faa8b 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;
@@ -241,6 +247,10 @@ sub displayable_state {
   return $self->closed ? $::locale->text('closed') : $::locale->text('open');
 }
 
+sub date {
+  goto &transdate;
+}
+
 1;
 
 __END__