id => $_->id,
partnumber => $_->partnumber,
description => $_->description,
+ ean => $_->ean,
part_type => $_->part_type,
unit => $_->unit,
cvars => { map { ($_->config->name => { value => $_->value_as_text, is_valid => $_->is_valid }) } @{ $_->cvars_by_config } },
},
all => sub {
my ($key, $value, $prefix) = @_;
- return or => [ map { $prefix . $_ => $value } qw(partnumber description) ]
+ return or => [ map { $prefix . $_ => $value } qw(partnumber description ean) ]
}
);
{
float:left;
}
+div.ppp_block span.ppp_block_ean {
+ float:left;
+ margin-left:1em;
+}
div.ppp_block span.ppp_block_description {
float:right;
margin-left:1em;
margin-left:1em;
font-weight:bold;
}
+div.ppp_line span.ppp_block_number,
+div.ppp_line span.ppp_block_ean {
+ float:left;
+ margin-left:1em;
+}
div.ppp_line span.ppp_block_description,
div.cpc_line span.cpc_block_description
{
float:right;
font-weight:bold;
}
+div.ppp_block span.ppp_block_ean {
+ float:left;
+ margin-left:1em;
+}
div.cpc_block span.cpc_block_description {
float:left;
margin-left:1em;
font-weight:bold;
}
+div.ppp_line span.ppp_block_number,
+div.ppp_line span.ppp_block_ean {
+ float:left;
+ margin-left:1em;
+}
div.ppp_line span.ppp_block_description,
div.cpc_line span.cpc_block_description
{
id: $(this).children('input.part_picker_id').val(),
name: $(this).children('input.part_picker_description').val(),
classification_id: $(this).children('input.part_picker_classification_id').val(),
+ ean: $(this).children('input.part_picker_ean').val(),
unit: $(this).children('input.part_picker_unit').val(),
partnumber: $(this).children('input.part_picker_partnumber').val(),
description: $(this).children('input.part_picker_description').val(),
<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.displayable_name %]'>
+ <input type='hidden' class='part_picker_ean' value='[% part.ean %]'>
<input type='hidden' class='part_picker_unit' value='[% part.unit %]'>
<span class='ppp_block_number'>[% part.partnumber | html %]</span>
+ <span class='ppp_block_ean'>[% part.ean | html %]</span>
<span class='ppp_block_description'>[% part.description | html %]</span>
<div style='clear:both;'></div>
<span class='ppp_block_sellprice'>[% 'Sellprice' | $T8 %]: [% part.sellprice_as_number | html %]</span>