]> wagnertech.de Git - kivitendo-erp.git/commitdiff
Oneline summary for GLTransaction/Invoice/PurchaseInvoice
authorG. Richardson <information@kivitendo-premium.de>
Sun, 29 Jan 2017 14:34:02 +0000 (15:34 +0100)
committerG. Richardson <information@kivitendo-premium.de>
Mon, 30 Jan 2017 13:31:20 +0000 (14:31 +0100)
to be used e.g. in Fibu Quicksearch

SL/DB/GLTransaction.pm
SL/DB/Invoice.pm
SL/DB/PurchaseInvoice.pm

index 67a4d3acaa643261876a88f5be94f28f2320d87e..3b9612e9e1d9ac8905be7d39189dedd6f01bda3d 100644 (file)
@@ -30,6 +30,11 @@ sub abbreviation {
   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) = @_;
 
index 0ef8d614e842f68c3d7927c94ea8890e17ba916e..4caafc0b003267b3aded43d3bdf5297eaaecbd36 100644 (file)
@@ -555,6 +555,12 @@ sub abbreviation {
   return t8('Invoice (one letter abbreviation)');
 }
 
+sub oneline_summary {
+  my $self = shift;
+
+  return sprintf("%s: %s %s (%s)", $self->abbreviation, $self->invnumber, $self->customer->name, $self->transdate->to_kivitendo);
+}
+
 sub date {
   goto &transdate;
 }
index 08be07f3323de9979a2d037f3bb31124cf8954bd..102cd8a5244df16d6eb841bde7c2b7b15162fe03 100644 (file)
@@ -88,6 +88,12 @@ sub abbreviation {
 
 };
 
+sub oneline_summary {
+  my $self = shift;
+
+  return sprintf("%s: %s %s (%s)", $self->abbreviation, $self->invnumber, $self->vendor->name, $self->transdate->to_kivitendo);
+}
+
 sub link {
   my ($self) = @_;