Revision 723e3155
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/price_rule/_filter.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %] |
|
3 |
[%- USE P %] |
|
4 |
[%- USE LxERP %] |
|
5 |
[%- USE HTML %] |
|
6 |
<form action='controller.pl' method='post' id='search_form'> |
|
7 |
<div class='filter_toggle'> |
|
8 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Show Filter' | $T8 %]</a> |
|
9 |
[% SELF.filter_summary | html %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE P %] |
|
4 |
[% USE LxERP %] |
|
5 |
[% USE HTML %] |
|
6 |
|
|
7 |
<form action="controller.pl" method="post" id="search_form"> |
|
8 |
|
|
9 |
<div class="wrapper"> |
|
10 |
|
|
11 |
[% BLOCK filter_toggle_panel %] |
|
12 |
[% |
|
13 |
# This code contains the form elements within the .filter-toggle-panel |
|
14 |
# This block must bear the name filter_toggle_panel |
|
15 |
# For more info have a look in common/toggle_panel.html |
|
16 |
%] |
|
17 |
<table id="filter_table" class="tbl-horizontal"> |
|
18 |
<caption>[% 'Part' | $T8 %]</caption> |
|
19 |
<tbody> |
|
20 |
<tr> |
|
21 |
<th>[% 'Description' | $T8 %]</th> |
|
22 |
<td>[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, class="wi-normal") %]</td> |
|
23 |
</tr> |
|
24 |
<tr> |
|
25 |
<th>[% 'Type' | $T8 %]</th> |
|
26 |
<td>[% L.select_tag('filter.type', [ [ 'customer', LxERP.t8('Sales Price Rules '), ] [ 'vendor', LxERP.t8('Purchase Price Rules ') ] ], with_empty=1, default=filter.type, id='price_rule_filter_type', class="wi-normal") %]</td> |
|
27 |
</tr> |
|
28 |
<tr> |
|
29 |
<th>[% 'Part' | $T8 %]</th> |
|
30 |
<td>[% P.part.picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, class="wi-normal") %]</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th>[% 'Partsgroup' | $T8 %]</th> |
|
34 |
<td>[% L.select_tag('filter.item_type_matches[].partsgroup', SELF.partsgroups, title_key='partsgroup', default=FORM.filter.item_type_matches.0.partsgroup, with_empty=1, class="wi-normal") %]</td> |
|
35 |
</tr> |
|
36 |
<tr> |
|
37 |
<th>[% 'Qty' | $T8 %]</th> |
|
38 |
<td>[% L.input_tag('filter.item_type_matches[].qty', FORM.filter.item_type_matches.0.qty, class="wi-normal") %]</td> |
|
39 |
</tr> |
|
40 |
<tr id="price_rule_filter_customer_tr"[% ' style="display:none" ' UNLESS SELF.vc== 'customer' %]> |
|
41 |
<th>[% 'Customer' | $T8 %]</th> |
|
42 |
<td>[% P.customer_vendor.picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', id='price_rule_filter_customer', class="wi-normal") %]</td> |
|
43 |
</tr> |
|
44 |
<tr id="price_rule_filter_vendor_tr"[% ' style="display:none" ' UNLESS SELF.vc== 'customer' %]><!-- PENDENT: Korrekt mit customer? --> |
|
45 |
<th>[% 'Vendor' | $T8 %]</th> |
|
46 |
<td>[% P.customer_vendor.picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', id='price_rule_filter_vendor', class="wi-normal") %]</td> |
|
47 |
</tr> |
|
48 |
<tr> |
|
49 |
<th>[% 'Business' | $T8 %]</th> |
|
50 |
<td>[% L.select_tag('filter.item_type_matches[].business', SELF.businesses, title_key='description', default=FORM.filter.item_type_matches.0.business, with_empty=1, class="wi-normal") %]</td> |
|
51 |
</tr> |
|
52 |
</tbody> |
|
53 |
</table> |
|
54 |
|
|
55 |
<table id="filter_table" class="tbl-horizontal"> |
|
56 |
<caption>[% 'Dates' | $T8 %]</caption> |
|
57 |
<tbody> |
|
58 |
<tr> |
|
59 |
<th>[% 'Reqdate' | $T8 %]</th> |
|
60 |
<td>[% L.date_tag('filter.item_type_matches[].reqdate', FORM.filter.item_type_matches.0.reqdate, class="wi-date") %]</td> |
|
61 |
</tr> |
|
62 |
<tr> |
|
63 |
<th>[% 'Transdate Record' | $T8 %]</th> |
|
64 |
<td>[% L.date_tag('filter.item_type_matches[].transdate', FORM.filter.item_type_matches.0.transdate, class="wi-date") %]</td> |
|
65 |
</tr> |
|
66 |
<tr> |
|
67 |
<th class="caption" colspan="2">[% 'Prices & Discounts' | $T8 %]</th> |
|
68 |
</tr> |
|
69 |
<tr> |
|
70 |
<th>[% 'Pricegroup' | $T8 %]</th> |
|
71 |
<td>[% L.select_tag('filter.item_type_matches[].pricegroup', SELF.pricegroups, default=FORM.filter.item_type_matches.0.pricegroup, title_key='pricegroup', with_empty=1, class="wi-normal") %]<br> |
|
72 |
</td> |
|
73 |
</tr> |
|
74 |
<tr> |
|
75 |
<th>[% 'Price' | $T8 %]</th> |
|
76 |
<td>[% L.input_tag('filter.price:number', filter.price_number, size=20, class="wi-normal") %]</td> |
|
77 |
</tr> |
|
78 |
<tr> |
|
79 |
<th>[% 'Reduced Master Data' | $T8 %]</th> |
|
80 |
<td>[% L.input_tag('filter.reduction:number', filter.reduction_number, size=20, class="wi-normal") %]</td> |
|
81 |
</tr> |
|
82 |
<tr> |
|
83 |
<th>[% 'Discount' | $T8 %]</th> |
|
84 |
<td>[% L.input_tag('filter.discount:number', filter.discount_number, size=20, class="wi-normal") %]</td> |
|
85 |
</tr> |
|
86 |
<tr> |
|
87 |
<th class="caption" colspan="2">[% 'Status' | $T8 %]</th> |
|
88 |
</tr> |
|
89 |
<tr> |
|
90 |
<th>[% 'Priority' | $T8 %]</th> |
|
91 |
<td>[% L.select_tag('filter.priority', [ [ '', LxERP.t8('All') ], [ 3, LxERP.t8('Normal') ], [ 4 , LxERP.t8('Override')]], default=filter.priority, class="wi-normal") %]</td> |
|
92 |
</tr> |
|
93 |
<tr> |
|
94 |
<th>[% 'Obsolete' | $T8 %]</th> |
|
95 |
<td>[% L.select_tag('filter.obsolete', [ [ '', LxERP.t8('Both') ], [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=filter.obsolete, class="wi-normal") %]</td> |
|
96 |
</tr> |
|
97 |
</tbody> |
|
98 |
</table> |
|
99 |
|
|
100 |
<div class="col list"> |
|
101 |
<h3 class="caption">[% 'Has item type' | $T8 %]</h3> |
|
102 |
<div> |
|
103 |
[% FOREACH type = SELF.all_price_rule_item_types %] |
|
104 |
[% L.checkbox_tag('filter.has_item_type[]', value=type.0, label=type.1, checked=filter.has_item_type_.${type.0}) %]<br> |
|
105 |
[% END %] |
|
106 |
</div> |
|
10 | 107 |
</div> |
11 |
<div class='filter_toggle' style='display:none'> |
|
12 |
<a href='#' onClick='javascript:$(".filter_toggle").toggle()'>[% 'Hide Filter' | $T8 %]</a> |
|
13 |
<table id='filter_table'> |
|
14 |
<tr> |
|
15 |
<th align="right">[% 'Description' | $T8 %]</th> |
|
16 |
<td>[% L.input_tag('filter.name:substr::ilike', filter.name_substr__ilike, size = 20, style='width: 300px') %]</td> |
|
17 |
</tr> |
|
18 |
<tr> |
|
19 |
<th align="right">[% 'Type' | $T8 %]</th> |
|
20 |
<td>[% L.select_tag('filter.type', [ [ 'customer', LxERP.t8('Sales Price Rules '), ] [ 'vendor', LxERP.t8('Purchase Price Rules ') ] ], with_empty=1, default=filter.type, id='price_rule_filter_type', style='width: 300px') %]</td> |
|
21 |
</tr> |
|
22 |
<tr> |
|
23 |
<th align="right">[% 'Part' | $T8 %]</th> |
|
24 |
<td>[% P.part.picker('filter.item_type_matches[].part', FORM.filter.item_type_matches.0.part, style='width: 300px') %]</td> |
|
25 |
</tr> |
|
26 |
<tr id='price_rule_filter_customer_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]> |
|
27 |
<th align="right">[% 'Customer' | $T8 %]</th> |
|
28 |
<td>[% P.customer_vendor.picker('filter.item_type_matches[].customer', FORM.filter.item_type_matches.0.customer, type='customer', id='price_rule_filter_customer', style='width: 300px') %]</td> |
|
29 |
</tr> |
|
30 |
<tr id='price_rule_filter_vendor_tr' [% "style='display:hidden' " UNLESS SELF.vc == 'customer' %]> |
|
31 |
<th align="right">[% 'Vendor' | $T8 %]</th> |
|
32 |
<td>[% P.customer_vendor.picker('filter.item_type_matches[].vendor', FORM.filter.item_type_matches.0.vendor, type='vendor', id='price_rule_filter_vendor', style='width: 300px') %]</td> |
|
33 |
</tr> |
|
34 |
<tr> |
|
35 |
<th align="right">[% 'Business' | $T8 %]</th> |
|
36 |
<td>[% L.select_tag('filter.item_type_matches[].business', SELF.businesses, title_key='description', default=FORM.filter.item_type_matches.0.business, with_empty=1, style='width: 300px') %]</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<th align="right">[% 'Partsgroup' | $T8 %]</th> |
|
40 |
<td>[% L.select_tag('filter.item_type_matches[].partsgroup', SELF.partsgroups, title_key='partsgroup', default=FORM.filter.item_type_matches.0.partsgroup, with_empty=1, style='width: 300px') %]</td> |
|
41 |
</tr> |
|
42 |
<tr> |
|
43 |
<th align="right">[% 'Qty' | $T8 %]</th> |
|
44 |
<td>[% L.input_tag('filter.item_type_matches[].qty', FORM.filter.item_type_matches.0.qty, style='width: 300px') %]</td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<th align="right">[% 'Reqdate' | $T8 %]</th> |
|
48 |
<td>[% L.date_tag('filter.item_type_matches[].reqdate', FORM.filter.item_type_matches.0.reqdate, style='width: 300px') %]</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th align="right">[% 'Transdate Record' | $T8 %]</th> |
|
52 |
<td>[% L.date_tag('filter.item_type_matches[].transdate', FORM.filter.item_type_matches.0.transdate, style='width: 300px') %]</td> |
|
53 |
</tr> |
|
54 |
<tr> |
|
55 |
<th align="right">[% 'Pricegroup' | $T8 %]</th> |
|
56 |
<td>[% L.select_tag('filter.item_type_matches[].pricegroup', SELF.pricegroups, default=FORM.filter.item_type_matches.0.pricegroup, title_key='pricegroup', with_empty=1, style='width: 300px') %]<br> |
|
57 |
</td> |
|
58 |
</tr> |
|
59 |
<tr> |
|
60 |
<th align="right">[% 'Price' | $T8 %]</th> |
|
61 |
<td>[% L.input_tag('filter.price:number', filter.price_number, size=20, style='width: 300px') %]</td> |
|
62 |
</tr> |
|
63 |
<tr> |
|
64 |
<th align="right">[% 'Reduced Master Data' | $T8 %]</th> |
|
65 |
<td>[% L.input_tag('filter.reduction:number', filter.reduction_number, size=20, style='width: 300px') %]</td> |
|
66 |
</tr> |
|
67 |
<tr> |
|
68 |
<th align="right">[% 'Discount' | $T8 %]</th> |
|
69 |
<td>[% L.input_tag('filter.discount:number', filter.discount_number, size=20, style='width: 300px') %]</td> |
|
70 |
</tr> |
|
71 |
<tr> |
|
72 |
<th align="right">[% 'Priority' | $T8 %]</th> |
|
73 |
<td>[% L.select_tag('filter.priority', [ [ '', LxERP.t8('All') ], [ 3, LxERP.t8('Normal') ], [ 4 , LxERP.t8('Override')]], default=filter.priority, style='width: 300px') %]</td> |
|
74 |
</tr> |
|
75 |
<tr> |
|
76 |
<th align="right">[% 'Obsolete' | $T8 %]</th> |
|
77 |
<td>[% L.select_tag('filter.obsolete', [ [ '', LxERP.t8('Both') ], [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=filter.obsolete, style='width: 300px') %]</td> |
|
78 |
</tr> |
|
79 |
<tr> |
|
80 |
<th align="right">[% 'Has item type' | $T8 %]</th> |
|
81 |
<td> |
|
82 |
[%- FOREACH type = SELF.all_price_rule_item_types %] |
|
83 |
[%- L.checkbox_tag('filter.has_item_type[]', value=type.0, label=type.1, checked=filter.has_item_type_.${type.0}) %] |
|
84 |
[%- END %] |
|
85 |
</td> |
|
86 |
</tr> |
|
87 |
</table> |
|
88 | 108 |
|
89 | 109 |
[% L.hidden_tag('sort_by', FORM.sort_by) %] |
90 | 110 |
[% L.hidden_tag('sort_dir', FORM.sort_dir) %] |
91 | 111 |
[% L.hidden_tag('page', FORM.page) %] |
92 | 112 |
|
93 |
[% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset")) %] |
|
94 |
</div> |
|
113 |
<div class="buttons"> [% L.button_tag("\$('#search_form').resetForm()", LxERP.t8("Reset Filter"), class='neutral', type='reset') %]</div> |
|
95 | 114 |
|
115 |
[% END #BLOCK filter_toggle_panel %] |
|
116 |
[% INCLUDE 'common/toggle_panel.html' %] |
|
117 |
|
|
118 |
</div> |
|
96 | 119 |
</form> |
templates/webpages/price_rule/empty_item.html | ||
---|---|---|
1 |
[%- USE L %] |
|
2 |
[%- USE T8 %] |
|
3 |
[% L.select_tag('', SELF.all_price_rule_item_types, id='price_rules_empty_item_select') %] |
|
4 |
<a id='price_rule_item_add' class='cursor-pointer'>[% 'Add new price rule item' | $T8 %]</a> |
|
1 |
[% USE L %] |
|
2 |
[% USE T8 %] |
|
3 |
<tr> |
|
4 |
<td> </td> |
|
5 |
<td>[% L.select_tag('', SELF.all_price_rule_item_types, id='price_rules_empty_item_select') %]</td> |
|
6 |
<td colspan="2"> |
|
7 |
<a id="price_rule_item_add" class="button cursor-pointer">[% 'Add new price rule item' | $T8 %]</a> |
|
8 |
</td> |
|
9 |
</tr> |
|
10 |
|
templates/webpages/price_rule/form.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %][%- USE P %] |
|
3 |
[%- USE HTML %][%- USE LxERP %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE P %] |
|
4 |
[% USE HTML %] |
|
5 |
[% USE LxERP %] |
|
4 | 6 |
|
5 | 7 |
<h1>[% title %]</h1> |
6 | 8 |
|
7 |
[%- INCLUDE 'common/flash.html' %] |
|
8 |
|
|
9 |
<form method="post" action="controller.pl" id="form"> |
|
10 |
[% L.hidden_tag("price_rule.id", SELF.price_rule.id) %] |
|
11 |
[% L.hidden_tag("price_rule.type", SELF.price_rule.type) %] |
|
12 |
|
|
13 |
<table> |
|
14 |
<tr> |
|
15 |
<th align="right">[% 'Name' | $T8 %]</th> |
|
16 |
<td>[% L.input_tag("price_rule.name", SELF.price_rule.name, size=60, class='initial_focus') %]</td> |
|
17 |
</tr> |
|
18 |
<tr> |
|
19 |
<th align="right">[% 'Priority' | $T8 %]</th> |
|
20 |
<td>[% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, style='width: 300px') %]</td> |
|
21 |
</tr> |
|
22 |
|
|
23 |
<tr> |
|
24 |
<th align="right">[% 'Valid' | $T8 %]</th> |
|
25 |
<td>[% L.select_tag('price_rule.obsolete', [ [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=SELF.price_rule.obsolete, title_key='description', style='width: 300px') %]</td> |
|
26 |
</tr> |
|
27 |
|
|
28 |
<tr> |
|
29 |
<tr> |
|
9 |
[% INCLUDE 'common/flash.html' %] |
|
10 |
|
|
11 |
<form method="post" action="controller.pl" id="form"> |
|
12 |
[% L.hidden_tag("price_rule.id", SELF.price_rule.id) %] |
|
13 |
[% L.hidden_tag("price_rule.type", SELF.price_rule.type) %] |
|
14 |
|
|
15 |
<div class="wrapper"> |
|
16 |
|
|
17 |
<table class="tbl-horizontal"> |
|
18 |
<tbody> |
|
19 |
<tr> |
|
20 |
<th>[% 'Name' | $T8 %]</th> |
|
21 |
<td>[% L.input_tag("price_rule.name", SELF.price_rule.name, class='initial_focus wi-wide') %]</td> |
|
22 |
</tr> |
|
23 |
<tr> |
|
24 |
<th>[% 'Priority' | $T8 %]</th> |
|
25 |
<td>[% L.select_tag('price_rule.priority', [ [3, LxERP.t8('Normal') ], [ 4, LxERP.t8('Override') ] ], default=SELF.price_rule.priority, class='wi-normal') %]</td> |
|
26 |
</tr> |
|
27 |
<tr> |
|
28 |
<th>[% 'Valid' | $T8 %]</th> |
|
29 |
<td>[% L.select_tag('price_rule.obsolete', [ [ 0, LxERP.t8('Valid') ], [ 1 , LxERP.t8('Obsolete')]], default=SELF.price_rule.obsolete, title_key='description', class='wi-normal') %]</td> |
|
30 |
</tr> |
|
31 |
</tbody> |
|
32 |
</table> |
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
<div id="price_rule_items"> |
|
37 |
<table class="tbl-list" style="clear:left;"> |
|
38 |
<caption>[% 'If all of the following match' | $T8 %]:</caption> |
|
39 |
<thead><tr> |
|
40 |
<th class="center">X</th> |
|
41 |
<th>Objekt</th> |
|
42 |
<th>Bedingung</th> |
|
43 |
<th>Wert</th> |
|
44 |
</tr></thead> |
|
45 |
<tbody> |
|
46 |
[% FOREACH item = SELF.price_rule.items %] |
|
47 |
[% PROCESS 'price_rule/item.html' item=item %] |
|
48 |
[% END %] |
|
49 |
</tbody> |
|
50 |
<tbody id="price_rule_new_items"></tbody> |
|
51 |
<tfoot id="price_rule_emtpy_item" class="blank">[% PROCESS 'price_rule/empty_item.html' %]</tfoot> |
|
30 | 52 |
</table> |
53 |
</div> |
|
31 | 54 |
|
32 |
<h3>[% 'If all of the following match' | $T8 %]:</h3> |
|
33 |
|
|
34 |
<div id='price_rule_items' style='margin-left: 20px;'> |
|
35 |
[% FOREACH item = SELF.price_rule.items %] |
|
36 |
[% PROCESS 'price_rule/item.html' item=item %] |
|
37 |
[% END %] |
|
38 |
<div id='price_rule_new_items'></div> |
|
39 |
<div>[% PROCESS 'price_rule/empty_item.html' %]</div> |
|
55 |
<div class="input-panel control-panel"> |
|
56 |
<h3>[% 'Then' | $T8 %]…</h3> |
|
57 |
<p>[% 'Set (set to)' | $T8 %] [% L.select_tag('price_rule.price_type', SELF.all_price_types, default=SELF.price_rule.price_type) %] [% 'to (set to)' | $T8 %] [% L.input_tag('price_rule.price_or_discount_as_number', SELF.price_rule.price_or_discount_as_number) %] <a id="price_rule_price_type_help" class="interact cursor-help" title="[% 'Price type explanation' | $T8 %]">[?]</a></p> |
|
40 | 58 |
</div> |
41 | 59 |
|
42 |
<h3>[% 'Then' | $T8 %]:</h3> |
|
43 |
<div>[% 'Set (set to)' | $T8 %] [% L.select_tag('price_rule.price_type', SELF.all_price_types, default=SELF.price_rule.price_type) %] [% 'to (set to)' | $T8 %] [% L.input_tag('price_rule.price_or_discount_as_number', SELF.price_rule.price_or_discount_as_number) %] <a id='price_rule_price_type_help' class='interact cursor-help' title='[% 'Price type explanation' | $T8 %]'>[?]</a> |
|
44 | 60 |
</div> |
45 |
</form> |
|
61 |
|
|
62 |
</form> |
templates/webpages/price_rule/item.html | ||
---|---|---|
1 |
[%- USE L %]
|
|
2 |
[%- USE P %]
|
|
3 |
[%- USE HTML %]
|
|
4 |
[%- USE T8 %]
|
|
5 |
[%- USE LxERP %]
|
|
1 |
[% USE L %] |
|
2 |
[% USE P %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE T8 %] |
|
5 |
[% USE LxERP %] |
|
6 | 6 |
[% SET num_compare_ops = [ |
7 | 7 |
[ 'eq', LxERP.t8('is equal to') ], |
8 | 8 |
[ 'le', LxERP.t8('is lower than or equal') ], |
... | ... | |
13 | 13 |
[ 'gt', LxERP.t8('is after') ], |
14 | 14 |
[ 'lt', LxERP.t8('is before') ], |
15 | 15 |
] %] |
16 |
<div> |
|
17 |
<a class='price_rule_remove_line interact cursor-pointer'>✘</a> |
|
18 |
[% L.hidden_tag('price_rule.items[+].id', item.id) %] |
|
19 |
[% L.hidden_tag('price_rule.items[].type', item.type) %] |
|
20 |
[%- SWITCH item.type %] |
|
21 |
[% CASE 'part' %] |
|
22 |
[% 'Part' | $T8 %] [% 'is' | $T8 %] [% P.part.picker('price_rule.items[].value_int', item.part) %] |
|
23 |
[% CASE 'customer' %] |
|
24 |
[% 'Customer' | $T8 %] [% 'is' | $T8 %] [% P.customer_vendor.picker('price_rule.items[].value_int', item.customer, type='customer') %] |
|
25 |
[% CASE 'vendor' %] |
|
26 |
[% 'Vendor' | $T8 %] [% 'is' | $T8 %] [% P.customer_vendor.picker('price_rule.items[].value_int', item.vendor, type='vendor') %] |
|
27 |
[% CASE 'business' %] |
|
28 |
[% 'Type of Business' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.businesses, title_key='description', default=item.value_int) %] |
|
29 |
[% CASE 'partsgroup' %] |
|
30 |
[% 'Partsgroup' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.partsgroups, title_key='partsgroup', default=item.value_int) %] |
|
31 |
[% CASE 'qty' %] |
|
32 |
[% 'Quantity' | $T8 %] [% L.select_tag('price_rule.items[].op', num_compare_ops, default=item.op) %] [% L.input_tag('price_rule.items[].value_num_as_number', item.value_num_as_number) %] |
|
33 |
[% CASE 'reqdate' %] |
|
34 |
[% 'Reqdate' | $T8 %] [% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op) %] [% L.date_tag('price_rule.items[].value_date', item.value_date) %] |
|
35 |
[% CASE 'transdate' %] |
|
36 |
[% 'Transdate Record' | $T8 %] [% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op) %] [% L.date_tag('price_rule.items[].value_date', item.value_date) %] |
|
37 |
[% CASE 'pricegroup' %] |
|
38 |
[% 'Pricegroup' | $T8 %] [% 'is' | $T8 %] [% L.select_tag('price_rule.items[].value_int', SELF.pricegroups, title_key='pricegroup', default=item.value_int) %] |
|
39 |
[% CASE %] |
|
40 |
[%- END %] |
|
41 |
</div> |
|
16 |
|
|
17 |
<tr class="item"> |
|
18 |
<td> |
|
19 |
<a class="price_rule_remove_line interact cursor-pointer button">✘</a><!-- PENDENT: das Loeschzeichen sollte einheitlich angewendet werden. --> |
|
20 |
[% L.hidden_tag('price_rule.items[+].id', item.id) %] |
|
21 |
[% L.hidden_tag('price_rule.items[].type', item.type) %] |
|
22 |
</td> |
|
23 |
|
|
24 |
[% SWITCH item.type %] |
|
25 |
[% CASE 'part' %] |
|
26 |
<td>[% 'Part' | $T8 %]</td> |
|
27 |
<th>[% 'is' | $T8 %]</th> |
|
28 |
<td>[% P.part.picker('price_rule.items[].value_int', item.part,, class='wi-wide') %]</td> |
|
29 |
[% CASE 'customer' %] |
|
30 |
<td>[% 'Customer' | $T8 %]</td> |
|
31 |
<th>[% 'is' | $T8 %]</th> |
|
32 |
<td>[% P.customer_vendor.picker('price_rule.items[].value_int', item.customer, type='customer', class='wi-wide') %]</td> |
|
33 |
[% CASE 'vendor' %] |
|
34 |
<td>[% 'Vendor' | $T8 %]</td> |
|
35 |
<th>[% 'is' | $T8 %]</th> |
|
36 |
<td>[% P.customer_vendor.picker('price_rule.items[].value_int', item.vendor, type='vendor', class='wi-wide') %]</td> |
|
37 |
[% CASE 'business' %] |
|
38 |
<td>[% 'Type of Business' | $T8 %]</td> |
|
39 |
<th>[% 'is' | $T8 %]</th> |
|
40 |
<td>[% L.select_tag('price_rule.items[].value_int', SELF.businesses, title_key='description', default=item.value_int, class='wi-wide') %]</td> |
|
41 |
[% CASE 'partsgroup' %] |
|
42 |
<td>[% 'Partsgroup' | $T8 %]</td> |
|
43 |
<th>[% 'is' | $T8 %]</th> |
|
44 |
<td>[% L.select_tag('price_rule.items[].value_int', SELF.partsgroups, title_key='partsgroup', default=item.value_int, class='wi-wide') %]</td> |
|
45 |
[% CASE 'qty' %] |
|
46 |
<td>[% 'Quantity' | $T8 %]</td> |
|
47 |
<th>[% L.select_tag('price_rule.items[].op', num_compare_ops, default=item.op, class='wi-normal' ) %]</th> |
|
48 |
<td>[% L.input_tag('price_rule.items[].value_num_as_number', item.value_num_as_number, class='wi-small') %]</td> |
|
49 |
[% CASE 'reqdate' %] |
|
50 |
<td>[% 'Reqdate' | $T8 %]</td> |
|
51 |
<th>[% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op, class='wi-normal') %]</th> |
|
52 |
<td>[% L.date_tag('price_rule.items[].value_date', item.value_date,, class='wi-date') %]</td> |
|
53 |
[% CASE 'transdate' %]</td> |
|
54 |
<td>[% 'Transdate Record' | $T8 %]</td> |
|
55 |
<th>[% L.select_tag('price_rule.items[].op', date_compare_ops, default=item.op, class='wi-normal') %]</th> |
|
56 |
<td>[% L.date_tag('price_rule.items[].value_date', item.value_date,, class='wi-date') %]</td> |
|
57 |
[% CASE 'pricegroup' %] |
|
58 |
<td>[% 'Pricegroup' | $T8 %]</td> |
|
59 |
<th>[% 'is' | $T8 %]</th> |
|
60 |
<td>[% L.select_tag('price_rule.items[].value_int', SELF.pricegroups, title_key='pricegroup', default=item.value_int, class='wi-wide') %]</td> |
|
61 |
[% CASE %] |
|
62 |
[% END %] |
|
63 |
|
|
64 |
</tr> |
templates/webpages/price_rule/price_type_help.html | ||
---|---|---|
2 | 2 |
[% 'Matching Price Rules can apply in one of three types:' | $T8 %] |
3 | 3 |
|
4 | 4 |
<h3>[% 'Price' | $T8 %]</h3> |
5 |
|
|
6 | 5 |
<p> |
7 |
[% 'This will set an exact price.' | $T8 %] |
|
8 |
[% 'It will not be further modified by any other source, and will be offered in records like this.' | $T8 %] |
|
6 |
[% 'This will set an exact price.' | $T8 %]
|
|
7 |
[% 'It will not be further modified by any other source, and will be offered in records like this.' | $T8 %]
|
|
9 | 8 |
</p> |
10 | 9 |
|
11 | 10 |
<h3>[% 'Reduced Master Data' | $T8 %]</h3> |
12 |
|
|
13 | 11 |
<p> |
14 |
[% 'This will reduce the appropriate Master Data price by this in percent points.' | $T8 %] |
|
15 |
[% 'This will happen before the price is offered, and the reduction will not be printed in documents.' | $T8 %] |
|
16 |
[% 'Negative reductions are possible to model price increases.' | $T8 %] |
|
12 |
[% 'This will reduce the appropriate Master Data price by this in percent points.' | $T8 %]
|
|
13 |
[% 'This will happen before the price is offered, and the reduction will not be printed in documents.' | $T8 %]
|
|
14 |
[% 'Negative reductions are possible to model price increases.' | $T8 %]
|
|
17 | 15 |
</p> |
18 |
|
|
19 | 16 |
<p>[% 'Example' | $T8 %]:</p> |
20 |
|
|
21 | 17 |
<pre>[% 'Set (set to)' | $T8 %] [% 'Reduced Master Data' | $T8 %] [% 'to (set to)' | $T8 %] 3</pre> |
22 |
|
|
23 | 18 |
<p> |
24 |
[% 'This will apply a 3% reduction to the master data price before entering it into the record item.' | $T8 %] |
|
19 |
[% 'This will apply a 3% reduction to the master data price before entering it into the record item.' | $T8 %]
|
|
25 | 20 |
</p> |
26 |
|
|
27 | 21 |
<h3>[% 'Discount' | $T8 %]</h3> |
28 |
|
|
29 | 22 |
<p> |
30 |
[% 'This will be treated as a discount in percent points.' | $T8 %] |
|
31 |
[% 'Contrary to Reduced Master Data this will be shown as discount in records.' | $T8 %] |
|
32 |
[% 'The discounted amount will be shown in documents.' | $T8 %] |
|
23 |
[% 'This will be treated as a discount in percent points.' | $T8 %]
|
|
24 |
[% 'Contrary to Reduced Master Data this will be shown as discount in records.' | $T8 %]
|
|
25 |
[% 'The discounted amount will be shown in documents.' | $T8 %]
|
|
33 | 26 |
</p> |
templates/webpages/price_rule/report_bottom.html | ||
---|---|---|
1 | 1 |
[% USE L %] |
2 | 2 |
[% USE T8 %] |
3 | 3 |
[% USE HTML %] |
4 |
[%- L.paginate_controls(models=SELF.models) %] |
|
4 |
[% L.paginate_controls(models=SELF.models) %] |
|
5 |
</div><!-- /.wrapper --> |
templates/webpages/price_rule/report_top.html | ||
---|---|---|
1 |
[%- USE L %] |
|
2 |
[%- PROCESS 'price_rule/_filter.html' filter=SELF.models.filtered.laundered UNLESS FORM.inline %] |
|
3 |
<hr> |
|
1 |
[% USE L %] |
|
2 |
|
|
3 |
[% PROCESS 'price_rule/_filter.html' filter=SELF.models.filtered.laundered UNLESS FORM.inline %] |
|
4 |
|
|
5 |
<div class="wrapper"> |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/price_rule/..