zur Vereinheitlichung der Nomenklatur.
sub bin { require SL::DB::Bin; SL::DB::Manager::Bin ->find_by_or_create(id => $_[0]->{bin_id}) }
}
-sub long_description {
+sub displayable_name {
join ' ', grep $_, map $_[0]->$_, qw(partnumber description);
}
: $type eq 'business' ? t8('Type of Business') . ' ' . $self->business->displayable_name
: $type eq 'partsgroup' ? t8('Group') . ' ' . $self->partsgroup->displayable_name
: $type eq 'pricegroup' ? t8('Pricegroup') . ' ' . $self->pricegroup->displayable_name
- : $type eq 'part' ? t8('Part') . ' ' . $self->part->long_description
+ : $type eq 'part' ? t8('Part') . ' ' . $self->part->displayable_name
: $type eq 'qty' ? (
$op eq 'eq' ? t8('Qty equals #1', $self->value_num_as_number)
: $op eq 'lt' ? t8('Qty less than #1', $self->value_num_as_number)
<tr class='listrow'>
<td>[% row.base.itime_as_date %]</td>
<td>[% row.base.trans_type.description | $T8 %]</td>
- <td>[% row.base.part.long_description | html %]</td>
+ <td>[% row.base.part.displayable_name | html %]</td>
<td>[% row.out ? row.out.bin.full_description : '-' | html %]</td>
<td class='numeric'>[% row.in ? row.in.qty_as_number : LxERP.format_amount(-1 * row.out.qty, 2) %]</td>
<td>[% row.base.part.unit | html %]</td>
[%- USE L %]
[%- USE T8 %]
[%- IF SELF.part.id %]
-<h3>[% LxERP.t8('Stock for part #1', SELF.part.long_description) %]</h3>
+<h3>[% LxERP.t8('Stock for part #1', SELF.part.displayable_name) %]</h3>
[%- IF SELF.stock_empty && !SELF.part.bin_id %]
<p>[% 'Nothing stocked yet.' | $T8 %]</p>
<div class='part_picker_part [% FORM.no_paginate ? 'ppp_line' : 'ppp_block' %]'>
<input type='hidden' class='part_picker_id' value='[% part.id %]'>
<input type='hidden' class='part_picker_partnumber' value='[% part.partnumber %]'>
- <input type='hidden' class='part_picker_description' value='[% part.description %]'>
+ <input type='hidden' class='part_picker_description' value='[% part.displayable_name %]'>
<input type='hidden' class='part_picker_unit' value='[% part.unit %]'>
<span class='ppp_block_number'>[% part.partnumber | html %]</span>
<span class='ppp_block_description'>[% part.description | html %]</span>