]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/DB/Invoice.pm
RecordLinks: credit_notes verlinken, und Typ von Rechnungen anzeigen
[kivitendo-erp.git] / SL / DB / Invoice.pm
index d734003a16084c7bf8313787f6c2b5ed7a5d18c8..b6f1becd8d882ca14b32ee8c440ba8dc88f9802c 100644 (file)
@@ -318,6 +318,16 @@ sub displayable_state {
   return $self->closed ? $::locale->text('closed') : $::locale->text('open');
 }
 
+sub displayable_type {
+  my ($self) = @_;
+
+  return t8('AR Transaction')                         if $self->invoice_type eq 'ar_transaction';
+  return t8('Credit Note')                            if $self->invoice_type eq 'credit_note';
+  return t8('Invoice') . "(" . t8('Storno') . ")"     if $self->invoice_type eq 'invoice_storno';
+  return t8('Credit Note') . "(" . t8('Storno') . ")" if $self->invoice_type eq 'credit_note_storno';
+  return t8('Invoice');
+}
+
 sub abbreviation {
   my $self = shift;