]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DB/GLTransaction.pm
Fibu Schnellsuche - Datum mit to_kivitendo und oneline_summary
[mfinanz.git] / SL / DB / GLTransaction.pm
index 52c8b6e2e28aff250d9ed84000134546d66b862a..3b9612e9e1d9ac8905be7d39189dedd6f01bda3d 100644 (file)
@@ -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;