Revision fc264bc3
Von Tamino Steinert vor 12 Monaten hinzugefügt
SL/DB/DeliveryOrder.pm | ||
---|---|---|
115 | 115 |
} |
116 | 116 |
|
117 | 117 |
sub displayable_type { |
118 |
my $type = shift->type; |
|
119 |
|
|
120 |
return $::locale->text('Sales Delivery Order') if $type eq SALES_DELIVERY_ORDER_TYPE(); |
|
121 |
return $::locale->text('Purchase Delivery Order') if $type eq PURCHASE_DELIVERY_ORDER_TYPE(); |
|
122 |
|
|
123 |
die 'invalid type'; |
|
118 |
my ($self) = @_; |
|
119 |
return $self->type_data->text('type'); |
|
124 | 120 |
} |
125 | 121 |
|
126 | 122 |
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/Order/TypeData.pm | ||
---|---|---|
345 | 345 |
add => t8("Add Purchase Order Confirmation"), |
346 | 346 |
edit => t8("Edit Purchase Order Confirmation"), |
347 | 347 |
list => t8("Purchase Order Confirmations"), |
348 |
type => t8("Purchase Order Confirmation"), |
|
348 | 349 |
attachment => t8("purchase_order_confirmation_list"), |
349 | 350 |
}, |
350 | 351 |
show_menu => { |
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