Revision 0f029ccf
Von Tamino Steinert vor etwa 1 Jahr hinzugefügt
templates/design40_webpages/disposition_manager/_show_vendor_parts.html | ||
---|---|---|
1 |
[%- USE HTML -%] |
|
2 |
[%- USE LxERP -%] |
|
3 |
[%- USE L -%] |
|
4 |
[%- USE T8 -%] |
|
5 |
[%- USE P -%] |
|
6 |
|
|
7 |
<table id="vendor_parts_table" class="tbl-list"> |
|
8 |
<caption>[% 'All parts of vendor odered by onhand' | $T8 %]</caption> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% 'Purchase basket' | $T8 %] </th> |
|
12 |
<th>[% 'Partnumber' | $T8 %] </th> |
|
13 |
<th>[% 'Description' | $T8 %] </th> |
|
14 |
<th>[% 'Onhand' | $T8 %] </th> |
|
15 |
<th>[% 'Ordered purchase'| $T8 %] </th> |
|
16 |
<th>[% 'Rop' | $T8 %] </th> |
|
17 |
<th>[% 'Order quantity' | $T8 %] </th> |
|
18 |
<th>[% 'Vendor' | $T8 %] </th> |
|
19 |
</tr> |
|
20 |
</thead> |
|
21 |
<tbody> |
|
22 |
[% FOREACH makemodel_item = MAKEMODEL_ITEMS %] |
|
23 |
<tr> |
|
24 |
<td>[% L.checkbox_tag('vendor_part_ids[+]', |
|
25 |
checked='0', value=makemodel_item.id) %]</td> |
|
26 |
<td>[% makemodel_item.presenter.part(target = '_blank') %] |
|
27 |
[% P.button_tag( |
|
28 |
"kivi.DispositionManager.show_detail_dialog(" |
|
29 |
_ makemodel_item.id _ "," _ makemodel_item.partnumber _ |
|
30 |
")", |
|
31 |
LxERP.t8('Details (one letter abbreviation)'), |
|
32 |
title=LxERP.t8('Article details'), class="button") %] |
|
33 |
</td> |
|
34 |
<td>[% HTML.escape(makemodel_item.description) %]</td> |
|
35 |
<td class="numeric">[% makemodel_item.onhand_as_number %]</td> |
|
36 |
<td class="numeric">[% LxERP.format_amount(makemodel_item.get_open_ordered_qty, 2) %]</td> |
|
37 |
<td class="numeric">[% makemodel_item.rop_as_number %]</td> |
|
38 |
<td class="numeric">[% makemodel_item.order_qty_as_number %]</td> |
|
39 |
<td>[% P.part.vendor_price_dropdown( |
|
40 |
'vendor_ids[]', makemodel_item, |
|
41 |
default=makemodel_item.makemodels.item(0).make, |
|
42 |
style='width: 350px;' |
|
43 |
) %] |
|
44 |
</td> |
|
45 |
</tr> |
|
46 |
[% END %] |
|
47 |
</tbody> |
|
48 |
</table> |
templates/design40_webpages/disposition_manager/list_parts.html | ||
---|---|---|
1 |
[%- USE HTML -%] |
|
2 |
[%- USE LxERP -%] |
|
3 |
[%- USE L -%] |
|
4 |
[%- USE T8 -%] |
|
5 |
|
|
6 |
[%- INCLUDE 'common/flash.html' %] |
|
7 |
|
|
8 |
<div class="wrapper"> |
|
9 |
<form id="form"> |
|
10 |
<table class="tbl-list"> |
|
11 |
<caption>[% 'Short onhand' | $T8 %]</caption> |
|
12 |
<thead> |
|
13 |
<tr> |
|
14 |
<th> |
|
15 |
[% L.checkbox_tag('check_all', checkall='[data-checkall=1]') %] |
|
16 |
[% 'Purchase basket' | $T8 %] |
|
17 |
</th> |
|
18 |
<th>[% 'Partnumber' | $T8 %] </th> |
|
19 |
<th>[% 'Description' | $T8 %] </th> |
|
20 |
<th>[% 'Vendor' | $T8 %] </th> |
|
21 |
<th>[% 'Onhand' | $T8 %] </th> |
|
22 |
<th>[% 'Rop' | $T8 %] </th> |
|
23 |
<th>[% 'Minimum order quantity' | $T8 %] </th> |
|
24 |
</tr> |
|
25 |
</thead> |
|
26 |
[% FOREACH part = PARTS %] |
|
27 |
[% IF !part.get_open_ordered_qty %] |
|
28 |
<tr> |
|
29 |
<td> |
|
30 |
[% IF part.makemodels.size %] |
|
31 |
[% L.checkbox_tag('ids[+]', 'data-checkall'=1, |
|
32 |
checked = '1', value=part.id) %] |
|
33 |
[% ELSE %] |
|
34 |
[% 'No Vendor' | $T8 %] |
|
35 |
[% END %] |
|
36 |
</td> |
|
37 |
<td>[% HTML.escape(part.partnumber) %]</td> |
|
38 |
<td>[% HTML.escape(part.description) %]</td> |
|
39 |
<td>[% P.part.vendor_price_dropdown( |
|
40 |
'vendor_ids[]', part, |
|
41 |
default=part.makemodels.item(0).make, |
|
42 |
style='width: 350px;' |
|
43 |
) %] |
|
44 |
</td> |
|
45 |
<td class="numeric">[% LxERP.format_amount(part.onhandqty, 2) %]</td> |
|
46 |
<td class="numeric">[% part.rop_as_number %]</td> |
|
47 |
<td class="numeric">[% part.order_qty_as_number %]</td> |
|
48 |
</tr> |
|
49 |
[% END %] |
|
50 |
[% END %] |
|
51 |
</table> |
|
52 |
</form> |
|
53 |
</div> |
templates/design40_webpages/disposition_manager/reorder_level_list/report_bottom.html | ||
---|---|---|
1 |
[% USE L %] |
|
2 |
[%- L.paginate_controls(models=SELF.models) %] |
templates/design40_webpages/disposition_manager/show_purchase_basket.html | ||
---|---|---|
1 |
[%- USE HTML -%] |
|
2 |
[%- USE LxERP -%] |
|
3 |
[%- USE L -%] |
|
4 |
[%- USE T8 -%] |
|
5 |
[%- USE P -%] |
|
6 |
|
|
7 |
[%- INCLUDE 'common/flash.html' %] |
|
8 |
<h1>[% title %]</h1> |
|
9 |
<form id="purchasebasket"> |
|
10 |
|
|
11 |
<div class="wrapper" id="wrapper-1"> |
|
12 |
[% INCLUDE 'generic/toggle_wrapper.html' %] |
|
13 |
|
|
14 |
<div class="col"> |
|
15 |
<table class="tbl-horizontal"> |
|
16 |
<caption>[% 'Vendor' | $T8 %]</caption> |
|
17 |
<tbody> |
|
18 |
<tr> |
|
19 |
<td>[% P.customer_vendor.picker('vendor_id2', FORM.vendor_id2, type='vendor') %]</td> |
|
20 |
</tr> |
|
21 |
</tbody> |
|
22 |
</table> |
|
23 |
</div> |
|
24 |
|
|
25 |
</div><!-- /.wrapper --> |
|
26 |
|
|
27 |
<div class="wrapper"> |
|
28 |
<table id="baskettable" class="tbl-list"> |
|
29 |
<caption>[% 'Purchase basket' | $T8 %]</caption> |
|
30 |
<thead> |
|
31 |
<tr> |
|
32 |
<th> |
|
33 |
[% L.checkbox_tag("", id="check_all", checkall="[data-checkall=1]") %] |
|
34 |
[% 'Purchase basket' | $T8 %] |
|
35 |
</th> |
|
36 |
<th>[% 'Partnumber' | $T8 %] </th> |
|
37 |
<th>[% 'Description' | $T8 %] </th> |
|
38 |
<th>[% 'Onhand' | $T8 %] </th> |
|
39 |
<th>[% 'Rop' | $T8 %] </th> |
|
40 |
<th>[% 'Order quantity' | $T8 %] </th> |
|
41 |
<th>[% 'Vendor' | $T8 %] </th> |
|
42 |
</tr> |
|
43 |
</thead> |
|
44 |
<tbody> |
|
45 |
[% FOREACH basket_item = BASKET_ITEMS %] |
|
46 |
|
|
47 |
<tr> |
|
48 |
<td>[% L.checkbox_tag('ids[+]', "data-checkall"=1, checked = '1', value=basket_item.id) %] [% HTML.escape(basket_item.part.partsgroup.partsgroup) %] |
|
49 |
[% L.hidden_tag('partsgroup_ids[]', basket_item.part.partsgroup_id ) %] |
|
50 |
</td> |
|
51 |
<td> [% basket_item.part.presenter.part(target = '_blank') %] |
|
52 |
[% P.button_tag( |
|
53 |
"kivi.DispositionManager.show_detail_dialog(" |
|
54 |
_ basket_item.part.id _ "," _ basket_item.part.partnumber _ |
|
55 |
")", |
|
56 |
LxERP.t8('Details (one letter abbreviation)'), |
|
57 |
title=LxERP.t8('Article details'), class="button") %] |
|
58 |
</td> |
|
59 |
<td>[% HTML.escape(basket_item.part.description) %]</td> |
|
60 |
<td class="numeric">[% basket_item.part.onhand_as_number %]</td> |
|
61 |
<td class="numeric">[% basket_item.part.rop_as_number %]</td> |
|
62 |
<td class="numeric">[% basket_item.qty_as_number %]</td> |
|
63 |
<td>[% P.part.vendor_price_dropdown( |
|
64 |
'vendor_ids[]', basket_item.part, |
|
65 |
default=basket_item.part.makemodels.item(0).make, |
|
66 |
style='width: 350px;' |
|
67 |
) %] |
|
68 |
</td> |
|
69 |
</tr> |
|
70 |
[% END %] |
|
71 |
</tbody> |
|
72 |
</table> |
|
73 |
</div> |
|
74 |
|
|
75 |
<div id="vendor_parts" class="wrapper"></div> |
|
76 |
</form> |
|
77 |
|
|
78 |
|
|
79 |
<script type="text/javascript"> |
|
80 |
<!-- |
|
81 |
|
|
82 |
$('#vendor_id2').change('set_item:CustomerVendorPicker', function(e,o) { |
|
83 |
kivi.DispositionManager.sort_vendors(); |
|
84 |
}) |
|
85 |
--> |
|
86 |
</script> |
|
87 |
|
Auch abrufbar als: Unified diff
DispositionManager: Templates design 4.0