Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7203ed2f

Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt

  • ID 7203ed2f94d9ac63e93097e05b19db4c5e557d25
  • Vorgänger f42f3f8a
  • Nachfolger ef5a6d67

invoice_type, displayable_type und displayable_name für ap

Bei Einkaufsrechnungen und Kreditorenbuchungen gibt es keine Stornos
oder Gutschriften.

Unterschiede anzeigen:

SL/DB/PurchaseInvoice.pm
50 50

  
51 51
sub items { goto &invoiceitems; }
52 52
sub add_items { goto &add_invoiceitems; }
53
sub record_number { goto &invnumber; };
53 54

  
54 55
sub is_sales {
55 56
  # For compatibility with Order, DeliveryOrder
......
89 90
  return $html;
90 91
}
91 92

  
93
sub invoice_type {
94
  my ($self) = @_;
95

  
96
  return 'ap_transaction' if !$self->invoice;
97
  return 'purchase_invoice';
98
}
99

  
100
sub displayable_type {
101
  my ($self) = @_;
102

  
103
  return t8('AP Transaction')    if $self->invoice_type eq 'ap_transaction';
104
  return t8('Purchase Invoice');
105
}
106

  
107
sub displayable_name {
108
  join ' ', grep $_, map $_[0]->$_, qw(displayable_type record_number);
109
};
110

  
92 111
1;

Auch abrufbar als: Unified diff