Revision 81c31c30
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
105 | 105 |
} |
106 | 106 |
|
107 | 107 |
sub displayable_type { |
108 |
my $type = shift->type; |
|
109 |
|
|
110 |
return $::locale->text('Sales Delivery Order') if $type eq SALES_DELIVERY_ORDER_TYPE(); |
|
111 |
return $::locale->text('Purchase Delivery Order') if $type eq PURCHASE_DELIVERY_ORDER_TYPE(); |
|
112 |
|
|
113 |
die 'invalid type'; |
|
108 |
my ($self) = @_; |
|
109 |
return $self->type_data->text('type'); |
|
114 | 110 |
} |
115 | 111 |
|
116 | 112 |
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