Revision 7203ed2f
Von Kivitendo Admin vor mehr als 8 Jahren hinzugefügt
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
invoice_type, displayable_type und displayable_name für ap
Bei Einkaufsrechnungen und Kreditorenbuchungen gibt es keine Stornos
oder Gutschriften.