Revision b720e272
Von Kivitendo Admin vor fast 10 Jahren hinzugefügt
SL/DB/Part.pm | ||
---|---|---|
205 | 205 |
sub bin { require SL::DB::Bin; SL::DB::Manager::Bin ->find_by_or_create(id => $_[0]->{bin_id}) } |
206 | 206 |
} |
207 | 207 |
|
208 |
sub long_description {
|
|
208 |
sub displayable_name {
|
|
209 | 209 |
join ' ', grep $_, map $_[0]->$_, qw(partnumber description); |
210 | 210 |
} |
211 | 211 |
|
SL/DB/PriceRuleItem.pm | ||
---|---|---|
111 | 111 |
: $type eq 'business' ? t8('Type of Business') . ' ' . $self->business->displayable_name |
112 | 112 |
: $type eq 'partsgroup' ? t8('Group') . ' ' . $self->partsgroup->displayable_name |
113 | 113 |
: $type eq 'pricegroup' ? t8('Pricegroup') . ' ' . $self->pricegroup->displayable_name |
114 |
: $type eq 'part' ? t8('Part') . ' ' . $self->part->long_description
|
|
114 |
: $type eq 'part' ? t8('Part') . ' ' . $self->part->displayable_name
|
|
115 | 115 |
: $type eq 'qty' ? ( |
116 | 116 |
$op eq 'eq' ? t8('Qty equals #1', $self->value_num_as_number) |
117 | 117 |
: $op eq 'lt' ? t8('Qty less than #1', $self->value_num_as_number) |
templates/webpages/inventory/_journal.html | ||
---|---|---|
21 | 21 |
<tr class='listrow'> |
22 | 22 |
<td>[% row.base.itime_as_date %]</td> |
23 | 23 |
<td>[% row.base.trans_type.description | $T8 %]</td> |
24 |
<td>[% row.base.part.long_description | html %]</td>
|
|
24 |
<td>[% row.base.part.displayable_name | html %]</td>
|
|
25 | 25 |
<td>[% row.out ? row.out.bin.full_description : '-' | html %]</td> |
26 | 26 |
<td class='numeric'>[% row.in ? row.in.qty_as_number : LxERP.format_amount(-1 * row.out.qty, 2) %]</td> |
27 | 27 |
<td>[% row.base.part.unit | html %]</td> |
templates/webpages/inventory/_stock.html | ||
---|---|---|
3 | 3 |
[%- USE L %] |
4 | 4 |
[%- USE T8 %] |
5 | 5 |
[%- IF SELF.part.id %] |
6 |
<h3>[% LxERP.t8('Stock for part #1', SELF.part.long_description) %]</h3>
|
|
6 |
<h3>[% LxERP.t8('Stock for part #1', SELF.part.displayable_name) %]</h3>
|
|
7 | 7 |
|
8 | 8 |
[%- IF SELF.stock_empty && !SELF.part.bin_id %] |
9 | 9 |
<p>[% 'Nothing stocked yet.' | $T8 %]</p> |
templates/webpages/part/_part_picker_result.html | ||
---|---|---|
9 | 9 |
<div class='part_picker_part [% FORM.no_paginate ? 'ppp_line' : 'ppp_block' %]'> |
10 | 10 |
<input type='hidden' class='part_picker_id' value='[% part.id %]'> |
11 | 11 |
<input type='hidden' class='part_picker_partnumber' value='[% part.partnumber %]'> |
12 |
<input type='hidden' class='part_picker_description' value='[% part.description %]'>
|
|
12 |
<input type='hidden' class='part_picker_description' value='[% part.displayable_name %]'>
|
|
13 | 13 |
<input type='hidden' class='part_picker_unit' value='[% part.unit %]'> |
14 | 14 |
<span class='ppp_block_number'>[% part.partnumber | html %]</span> |
15 | 15 |
<span class='ppp_block_description'>[% part.description | html %]</span> |
Auch abrufbar als: Unified diff
Part: long_description in displayable_name umbenannt
zur Vereinheitlichung der Nomenklatur.