Revision 96405a1a
Von Werner Hahn vor mehr als 1 Jahr hinzugefügt
js/kivi.DispositionManager.js | ||
---|---|---|
11 | 11 |
}); |
12 | 12 |
} |
13 | 13 |
|
14 |
ns.filter_partsgroup = function() { |
|
15 |
$("table tr").each(function(index) { |
|
16 |
if ( index !== 0 ) { |
|
17 |
$row = $(this); |
|
18 |
if( $row.find("input[name='partsgroup_ids[]']").val() != $('#partsgroup_id').val()) { |
|
19 |
$row.remove(); |
|
20 |
} |
|
21 |
} |
|
22 |
}); |
|
23 |
} |
|
24 |
|
|
14 | 25 |
ns.display_vendor_parts = function(vendor_id) { |
15 | 26 |
var url = 'controller.pl?action=DispositionManager/show_vendor_items&v_id=' + vendor_id; |
16 | 27 |
$('#vendor_parts').load(url); |
templates/webpages/disposition_manager/show_purchase_basket.html | ||
---|---|---|
4 | 4 |
<h1>[% title %]</h1> |
5 | 5 |
[% # Dumper.dump_html(BASKET_ITEMS) %] |
6 | 6 |
<form id="purchasebasket" style="margin:1em;"> |
7 |
[% 'Vendor' | $T8 %]: [% P.customer_vendor.picker('vendor_id2', '', type='vendor') %]<br> |
|
7 |
<div> |
|
8 |
<p>[% 'Vendor' | $T8 %]: [% P.customer_vendor.picker('vendor_id2', FORM.vendor_id2, type='vendor') %]</p> |
|
9 |
<p>[% 'Partsgroup' | $T8 %]: [% P.partsgroup.picker('partsgroup_id', FORM.partsgroup_id, with_empty=1, onchange=> "kivi.DispositionManager.filter_partsgroup();") %]</p> |
|
10 |
</div> |
|
8 | 11 |
<div> |
9 | 12 |
<table id="baskettable" width="100%"> |
10 | 13 |
<thead> |
... | ... | |
26 | 29 |
[% SET select_size = basket_item.part.vendor_dropdown.size %] |
27 | 30 |
[% # IF !basket_item.part.get_ordered_qty(part.id) %] |
28 | 31 |
<tr class="listrow"> |
29 |
<td>[% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1', value=basket_item.id) %]</td> |
|
32 |
<td>[% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1', value=basket_item.id) %] [% HTML.escape(basket_item.part.partsgroup.partsgroup) %] |
|
33 |
[% L.hidden_tag('partsgroup_ids[]', basket_item.part.partsgroup_id ) %] |
|
34 |
</td> |
|
30 | 35 |
<td>[% basket_item.part.presenter.part(target = '_blank') %] |
31 | 36 |
[% IF basket_item.part.id %] |
32 | 37 |
<img class="odbuttons" onclick="kivi.DispositionManager.show_detail_dialog('[% basket_item.part.id %]','[% basket_item.part.partnumber %]')" src="image/icons/svg/information.svg" |
Auch abrufbar als: Unified diff
HMO: DispositionsManager /Einkaufswarenkorb Filter Warengruppe