Revision 73eb1f18
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
101 | 101 |
} |
102 | 102 |
|
103 | 103 |
sub displayable_type { |
104 |
my $type = shift->type; |
|
105 |
|
|
106 |
return $::locale->text('Sales Delivery Order') if $type eq SALES_DELIVERY_ORDER_TYPE(); |
|
107 |
return $::locale->text('Purchase Delivery Order') if $type eq PURCHASE_DELIVERY_ORDER_TYPE(); |
|
108 |
|
|
109 |
die 'invalid type'; |
|
104 |
my ($self) = @_; |
|
105 |
return $self->type_data->text('type'); |
|
110 | 106 |
} |
111 | 107 |
|
112 | 108 |
sub displayable_name { |
SL/DB/Order.pm | ||
---|---|---|
249 | 249 |
|
250 | 250 |
sub displayable_type { |
251 | 251 |
my ($self) = @_; |
252 |
|
|
253 |
return $self->type_data->text('list'); |
|
252 |
return $self->type_data->text('type'); |
|
254 | 253 |
} |
255 | 254 |
|
256 | 255 |
sub displayable_name { |
SL/DB/Reclamation.pm | ||
---|---|---|
128 | 128 |
} |
129 | 129 |
|
130 | 130 |
sub displayable_type { |
131 |
my $type = shift->type; |
|
132 |
|
|
133 |
return $::locale->text('Sales Reclamation') if $type eq SALES_RECLAMATION_TYPE(); |
|
134 |
return $::locale->text('Purchase Reclamation') if $type eq PURCHASE_RECLAMATION_TYPE(); |
|
135 |
|
|
136 |
die 'invalid type'; |
|
131 |
my ($self) = @_; |
|
132 |
return $self->type_data->text('type'); |
|
137 | 133 |
} |
138 | 134 |
|
139 | 135 |
sub displayable_name { |
Auch abrufbar als: Unified diff
TypeData: nutze richtige Übersetzung für Typ