X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/9e58ceae3d60fe8986a2aefb8065467b16fa18de..a23454bb1b039a31b7f77710ff663fa9152d530c:/SL/DB/Invoice.pm diff --git a/SL/DB/Invoice.pm b/SL/DB/Invoice.pm index 861c92ae4..09c7f86e7 100644 --- a/SL/DB/Invoice.pm +++ b/SL/DB/Invoice.pm @@ -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__