1 package SL::DB::GLTransaction;
5 use SL::DB::MetaSetup::GLTransaction;
8 # Creates get_all, get_all_count, get_all_iterator, delete_all and update_all.
9 __PACKAGE__->meta->make_manager_class;
11 __PACKAGE__->meta->add_relationship(
13 type => 'one to many',
14 class => 'SL::DB::AccTransaction',
15 column_map => { id => 'trans_id' },
17 with_objects => [ 'chart' ],
18 sort_by => 'acc_trans_id ASC',
23 __PACKAGE__->meta->initialize;
28 my $abbreviation = $::locale->text('GL Transaction (abbreviation)');
29 $abbreviation .= "(" . $::locale->text('Storno (one letter abbreviation)') . ")" if $self->storno;
37 $html = SL::Presenter->get->gl_transaction($self, display => 'inline');
43 return $_[0]->reference;