X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/fcade7254d366eb6483b5640947589d989f01c95..5b981bb6a5c:/SL/DB/GLTransaction.pm diff --git a/SL/DB/GLTransaction.pm b/SL/DB/GLTransaction.pm index 52c8b6e2e..3b9612e9e 100644 --- a/SL/DB/GLTransaction.pm +++ b/SL/DB/GLTransaction.pm @@ -28,7 +28,24 @@ sub abbreviation { my $abbreviation = $::locale->text('GL Transaction (abbreviation)'); $abbreviation .= "(" . $::locale->text('Storno (one letter abbreviation)') . ")" if $self->storno; return $abbreviation; +} + +sub oneline_summary { + my ($self) = @_; + return sprintf("%s: %s %s (%s)", $self->abbreviation, $self->description, $self->reference, $_->transdate->to_kivitendo); +} + +sub link { + my ($self) = @_; + + my $html; + $html = SL::Presenter->get->gl_transaction($self, display => 'inline'); + + return $html; +} +sub invnumber { + return $_[0]->reference; } 1;