Revision 5d58ed30
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/order_items_search/_order_item_list.html | ||
---|---|---|
4 | 4 |
[% USE HTML %] |
5 | 5 |
[% USE P %] |
6 | 6 |
[% SET qty_round = 2 %] |
7 |
<table cellpadding="3px"> |
|
8 |
<tr class="listheading"> |
|
9 |
<th>[%- LxERP.t8("Part") %]</th> |
|
10 |
<th>[%- LxERP.t8("Customer") %]</th> |
|
11 |
<th>[%- LxERP.t8("Order") %]</th> |
|
12 |
<th>[%- LxERP.t8("Order Date") %]</th> |
|
13 |
<th>[%- LxERP.t8("Qty") %]</th> |
|
14 |
<th>[%- LxERP.t8("Delivered") %]</th> |
|
15 |
<th>[%- LxERP.t8("Price") %]</th> |
|
16 |
<th>[%- LxERP.t8("Discount") %] %</th> |
|
17 |
<th>[%- LxERP.t8("Delivery Order") %]</th> |
|
18 |
[% IF FORM.show_images %] |
|
19 |
<th>[%- LxERP.t8("Image") %]</th> |
|
20 |
[% END %] |
|
21 |
</tr> |
|
22 |
[% FOREACH order_item = SELF.orderitems %] |
|
23 |
<tr id="tr_[% loop.count %]" class="listrow[% loop.count % 2 %]"> |
|
24 |
<td> [% order_item.part.presenter.part(no_link => 0) %]</td> |
|
25 |
<td> [% order_item.order.customer.presenter.customer(no_link => 0) %]</td> |
|
26 |
<td class="numeric"> [% order_item.order.presenter.sales_order(no_link => 0) %]</td> |
|
27 |
<td> [% order_item.order.transdate.to_kivitendo %]</td> |
|
28 |
<td class="numeric [% IF order_item.delivered_qty == order_item.qty %]shipped[% ELSE %]not_shipped[% END %]"> |
|
29 |
[% LxERP.format_amount(order_item.qty, qty_round) %] [% order_item.unit | html %] |
|
30 |
</td> |
|
31 |
<td class="numeric"> [% LxERP.format_amount(order_item.delivered_qty, qty_round) %] [% order_item.unit | html %] </td> |
|
32 |
<td class="numeric"> [% order_item.sellprice_as_number %]</td> |
|
33 |
<td class="numeric"> [% order_item.discount_as_percent %]</td> |
|
34 |
<td> [% order_item.deliveryorders %]</td> |
|
35 |
[% IF FORM.show_images %] |
|
36 |
<td> [% IF order_item.part.image %]<a href="[% order_item.part.image | html %]" target="_blank"><img height="32" border="0" src="[% order_item.part.image | html %]"/></a>[% END %]</td> |
|
37 |
[% END %] |
|
38 |
</tr> |
|
39 |
[% END %] |
|
7 |
|
|
8 |
<table class="tbl-list wi-moderate"> |
|
9 |
<thead> |
|
10 |
<tr> |
|
11 |
<th>[% LxERP.t8("Part") %]</th> |
|
12 |
<th>[% LxERP.t8("Customer") %]</th> |
|
13 |
<th class="right">[% LxERP.t8("Order") %]</th> |
|
14 |
<th>[% LxERP.t8("Order Date") %]</th> |
|
15 |
<th class="right" colspan="2">[% LxERP.t8("Qty") ; "/" ;LxERP.t8("Unit") %]</th> |
|
16 |
<th class="right" colspan="2">[% LxERP.t8("Delivered") ; "/" ;LxERP.t8("Unit") %]</th> |
|
17 |
<th class="right">[% LxERP.t8("Price") %]</th> |
|
18 |
<th class="right">[% LxERP.t8("Discount") %]%</th> |
|
19 |
<th>[% LxERP.t8("Delivery Order") %]</th> |
|
20 |
[% IF FORM.show_images %] |
|
21 |
<th>[% LxERP.t8("Image") %]</th> |
|
22 |
[% END %] |
|
23 |
</tr> |
|
24 |
</thead> |
|
25 |
<tbody> |
|
26 |
[% FOREACH order_item = SELF.orderitems %] |
|
27 |
<tr id="tr_[% loop.count %]"> |
|
28 |
<td>[% order_item.part.presenter.part(no_link => 0) %]</td> |
|
29 |
<td>[% order_item.order.customer.presenter.customer(no_link => 0) %]</td> |
|
30 |
<td class="numeric">[% order_item.order.presenter.sales_order(no_link => 0) %]</td> |
|
31 |
<td>[% order_item.order.transdate.to_kivitendo %]</td> |
|
32 |
<td class="numeric[% IF order_item.delivered_qty == order_item.qty %] plus[% ELSE %] minus[% END %]"> |
|
33 |
[% LxERP.format_amount(order_item.qty, qty_round) %] |
|
34 |
</td> |
|
35 |
<td>[% order_item.unit | html %]</td> |
|
36 |
<td class="numeric">[% LxERP.format_amount(order_item.delivered_qty, qty_round) %]</td> |
|
37 |
<td>[% order_item.unit | html %]</td> |
|
38 |
<td class="numeric">[% order_item.sellprice_as_number %]</td> |
|
39 |
<td class="numeric">[% order_item.discount_as_percent %]</td> |
|
40 |
<td>[% order_item.deliveryorders %]</td> |
|
41 |
[% IF FORM.show_images %] |
|
42 |
<td>[% IF order_item.part.image %]<a href="[% order_item.part.image | html %]" target="_blank"><img height="32" src="[% order_item.part.image | html %]"/></a>[% END %]</td> |
|
43 |
[% END %] |
|
44 |
</tr> |
|
45 |
[% END %] |
|
46 |
</tbody> |
|
40 | 47 |
</table> |
templates/webpages/order_items_search/order_items.html | ||
---|---|---|
6 | 6 |
[% SET show_images=0 %] |
7 | 7 |
|
8 | 8 |
<h1>[% title %]</h1> |
9 |
<div style="padding-bottom: 15px"> |
|
10 |
[% 'Filter' | $T8 %]: |
|
9 |
<div class="wrapper"> |
|
10 |
|
|
11 |
|
|
11 | 12 |
<form id="filter" name="filter" method="post" action="controller.pl"> |
12 |
<table> |
|
13 |
</tr> |
|
14 |
<td>[% 'Customer' | $T8 %]</td> |
|
15 |
<td>[% P.customer_vendor.picker('filter.order.customer.id', FORM.customer_id, type='customer', class="filter", size=size) %]</td> |
|
16 |
</tr> |
|
17 |
<tr> |
|
18 |
<td>[% 'Part' | $T8 %]</td> |
|
19 |
<td>[% L.input_tag('filter.part.all:substr:multi::ilike', FORM.part, size = size, class="filter") %]</td> |
|
20 |
</tr> |
|
21 |
<tr> |
|
22 |
<td>[% 'Order Number' | $T8 %]</td> |
|
23 |
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', FORM.ordnumber, size = 10, class="filter") %]</td> |
|
24 |
<tr> |
|
25 |
<tr> |
|
26 |
<td>[% 'Order Date' | $T8 %]</td> |
|
27 |
<td>[% 'From' | $T8 %] [% L.date_tag("filter.order.transdate:date::ge", filter.order.transdate_date___ge, class="filter") %] [% 'Until' | $T8 %] [% L.date_tag('filter.order.transdate:date::le', filter.order.transdate_date__le, class="filter") %]</td> |
|
28 |
<tr> |
|
29 |
<tr> |
|
30 |
<td>[% 'Description' | $T8 %]</td> |
|
31 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = size, class="filter") %]</td> |
|
32 |
</tr> |
|
33 |
<tr> |
|
34 |
<td>[% 'Long Description' | $T8 %]</td> |
|
35 |
<td>[% L.input_tag('filter.longdescription:substr::ilike', filter.longdescription_substr__ilike, size = size, class="filter") %] </tr> |
|
36 |
<tr> |
|
37 |
<td>[% 'Show images' | $T8 %]</td> |
|
38 |
<td>[% L.checkbox_tag('show_images', checked=show_images) %] </tr> |
|
39 |
</tr> |
|
40 |
</table> |
|
41 |
[% L.button_tag("this.form.reset(); refresh_plot();", LxERP.t8("Reset")) %] |
|
13 |
|
|
14 |
[% BLOCK filter_toggle_panel %] |
|
15 |
<table class="tbl-horizontal text"> |
|
16 |
<tbody> |
|
17 |
<tr> |
|
18 |
<th>[% 'Customer' | $T8 %]</th> |
|
19 |
<td class="wi-lightwide">[% P.customer_vendor.picker('filter.order.customer.id', FORM.customer_id, type='customer', class='filter wi-lightwide') %]</td> |
|
20 |
</tr> |
|
21 |
<tr> |
|
22 |
<th>[% 'Part' | $T8 %]</th> |
|
23 |
<td>[% L.input_tag('filter.part.all:substr:multi::ilike', FORM.part, class="filter wi-lightwide") %]</td> |
|
24 |
</tr> |
|
25 |
<tr> |
|
26 |
<th>[% 'Order Number' | $T8 %]</th> |
|
27 |
<td>[% L.input_tag('filter.order.ordnumber:substr::ilike', FORM.ordnumber, class="filter wi-lightwide") %]</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th>[% 'Order Date' | $T8 %]</th> |
|
31 |
<td> |
|
32 |
[% #'From' | $T8 %] |
|
33 |
[% L.date_tag("filter.order.transdate:date::ge", filter.order.transdate_date___ge, class="filter wi-date") %] |
|
34 |
[% 'Until' | $T8 %] [% L.date_tag('filter.order.transdate:date::le', filter.order.transdate_date__le, class="filter wi-date") %] |
|
35 |
</td> |
|
36 |
</tr> |
|
37 |
<tr> |
|
38 |
<th>[% 'Description' | $T8 %]</th> |
|
39 |
<td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, class="filter wi-lightwide") %]</td> |
|
40 |
</tr> |
|
41 |
<tr> |
|
42 |
<th>[% 'Long Description' | $T8 %]</th> |
|
43 |
<td>[% L.input_tag('filter.longdescription:substr::ilike', filter.longdescription_substr__ilike, class="filter wi-lightwide") %] </td> |
|
44 |
</tr> |
|
45 |
<tr> |
|
46 |
<th>[% 'Show images' | $T8 %]</th> |
|
47 |
<td>[% L.checkbox_tag('show_images', checked=show_images) %] </td> |
|
48 |
</tr> |
|
49 |
</tbody> |
|
50 |
</table> |
|
51 |
<div class="buttons"> |
|
52 |
[% L.button_tag("this.form.reset(); refresh_plot();", LxERP.t8("Reset")) %] |
|
53 |
</div> |
|
54 |
[% END #filter_toggle_panel %] |
|
55 |
|
|
56 |
|
|
57 |
<div class="wrapper"> |
|
58 |
[% #SET display_status = 'open' %] |
|
59 |
[% INCLUDE 'common/toggle_panel.html' %] |
|
60 |
</div><!-- /.wrapper --> |
|
61 |
|
|
42 | 62 |
</form> |
43 | 63 |
|
44 |
<div id="orderitems" style="padding-top: 20px"> |
|
45 |
[% PROCESS 'order_items_search/_order_item_list.html' %] |
|
64 |
|
|
65 |
<div id="orderitems"> |
|
66 |
[% PROCESS 'order_items_search/_order_item_list.html' %] |
|
46 | 67 |
</div> |
47 | 68 |
|
69 |
</div><!-- /.wrapper --> |
|
48 | 70 |
|
49 | 71 |
<script type="text/javascript"> |
50 | 72 |
$(function() { |
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/order_items_search/