Revision 87b5c8e4
Von Bernd Bleßmann vor etwa 7 Jahren hinzugefügt
SL/Controller/Part.pm | ||
---|---|---|
549 | 549 |
id => $_->id, |
550 | 550 |
partnumber => $_->partnumber, |
551 | 551 |
description => $_->description, |
552 |
ean => $_->ean, |
|
552 | 553 |
part_type => $_->part_type, |
553 | 554 |
unit => $_->unit, |
554 | 555 |
cvars => { map { ($_->config->name => { value => $_->value_as_text, is_valid => $_->is_valid }) } @{ $_->cvars_by_config } }, |
SL/DB/Manager/Part.pm | ||
---|---|---|
22 | 22 |
}, |
23 | 23 |
all => sub { |
24 | 24 |
my ($key, $value, $prefix) = @_; |
25 |
return or => [ map { $prefix . $_ => $value } qw(partnumber description) ] |
|
25 |
return or => [ map { $prefix . $_ => $value } qw(partnumber description ean) ]
|
|
26 | 26 |
} |
27 | 27 |
); |
28 | 28 |
|
css/kivitendo/main.css | ||
---|---|---|
480 | 480 |
{ |
481 | 481 |
float:left; |
482 | 482 |
} |
483 |
div.ppp_block span.ppp_block_ean { |
|
484 |
float:left; |
|
485 |
margin-left:1em; |
|
486 |
} |
|
483 | 487 |
div.ppp_block span.ppp_block_description { |
484 | 488 |
float:right; |
485 | 489 |
margin-left:1em; |
... | ... | |
490 | 494 |
margin-left:1em; |
491 | 495 |
font-weight:bold; |
492 | 496 |
} |
497 |
div.ppp_line span.ppp_block_number, |
|
498 |
div.ppp_line span.ppp_block_ean { |
|
499 |
float:left; |
|
500 |
margin-left:1em; |
|
501 |
} |
|
493 | 502 |
div.ppp_line span.ppp_block_description, |
494 | 503 |
div.cpc_line span.cpc_block_description |
495 | 504 |
{ |
css/lx-office-erp/main.css | ||
---|---|---|
468 | 468 |
float:right; |
469 | 469 |
font-weight:bold; |
470 | 470 |
} |
471 |
div.ppp_block span.ppp_block_ean { |
|
472 |
float:left; |
|
473 |
margin-left:1em; |
|
474 |
} |
|
471 | 475 |
div.cpc_block span.cpc_block_description { |
472 | 476 |
float:left; |
473 | 477 |
margin-left:1em; |
474 | 478 |
font-weight:bold; |
475 | 479 |
} |
480 |
div.ppp_line span.ppp_block_number, |
|
481 |
div.ppp_line span.ppp_block_ean { |
|
482 |
float:left; |
|
483 |
margin-left:1em; |
|
484 |
} |
|
476 | 485 |
div.ppp_line span.ppp_block_description, |
477 | 486 |
div.cpc_line span.cpc_block_description |
478 | 487 |
{ |
js/kivi.Part.js | ||
---|---|---|
560 | 560 |
id: $(this).children('input.part_picker_id').val(), |
561 | 561 |
name: $(this).children('input.part_picker_description').val(), |
562 | 562 |
classification_id: $(this).children('input.part_picker_classification_id').val(), |
563 |
ean: $(this).children('input.part_picker_ean').val(), |
|
563 | 564 |
unit: $(this).children('input.part_picker_unit').val(), |
564 | 565 |
partnumber: $(this).children('input.part_picker_partnumber').val(), |
565 | 566 |
description: $(this).children('input.part_picker_description').val(), |
templates/webpages/part/_part_picker_result.html | ||
---|---|---|
11 | 11 |
<input type='hidden' class='part_picker_id' value='[% part.id %]'> |
12 | 12 |
<input type='hidden' class='part_picker_partnumber' value='[% part.partnumber %]'> |
13 | 13 |
<input type='hidden' class='part_picker_description' value='[% part.displayable_name %]'> |
14 |
<input type='hidden' class='part_picker_ean' value='[% part.ean %]'> |
|
14 | 15 |
<input type='hidden' class='part_picker_unit' value='[% part.unit %]'> |
15 | 16 |
<span class='ppp_block_number'>[% part.partnumber | html %]</span> |
17 |
<span class='ppp_block_ean'>[% part.ean | html %]</span> |
|
16 | 18 |
<span class='ppp_block_description'>[% part.description | html %]</span> |
17 | 19 |
<div style='clear:both;'></div> |
18 | 20 |
<span class='ppp_block_sellprice'>[% 'Sellprice' | $T8 %]: [% part.sellprice_as_number | html %]</span> |
Auch abrufbar als: Unified diff
PartPicker kann auch nach EAN suchen