Revision 75889221
Von Hans Peter Schlaepfer vor mehr als 5 Jahren hinzugefügt
templates/webpages/amcvar/render_checkboxes.html | ||
---|---|---|
1 |
[%- USE HTML %] |
|
2 |
[%- SET var_valid = HTML.escape(name_prefix) _ "cvar_" _ HTML.escape(var.name) _ HTML.escape(name_postfix) _ '_valid' -%] |
|
3 |
[%- IF var.partsgroup_filtered %] |
|
4 |
<input type="hidden" name="[% var_valid %]" value="[% HTML.escape(var.valid) %]"> |
|
5 |
[%- ELSE %] |
|
6 |
<input type=checkbox name='[% var_valid %]'[% IF var.valid %] checked[% END %]> |
|
7 |
[%- END %] |
|
1 |
[% USE HTML %] |
|
2 |
[% SET var_valid = HTML.escape(name_prefix) _ "cvar_" _ HTML.escape(var.name) _ HTML.escape(name_postfix) _ '_valid' %] |
|
3 |
[% IF var.partsgroup_filtered %] |
|
4 |
<input type="hidden" name="[% var_valid %]" value="[% HTML.escape(var.valid) %]"> |
|
5 |
[% ELSE %] |
|
6 |
<input type=checkbox name="[% var_valid %]"[% IF var.valid %] checked[% END %]> |
|
7 |
[% END %] |
templates/webpages/amcvar/render_inputs.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE HTML %]
|
|
3 |
[%- USE L %]
|
|
4 |
[%- USE P %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE L %] |
|
4 |
[% USE P %] |
|
5 | 5 |
|
6 |
[%- SET var_name = HTML.escape(name_prefix) _ "cvar_" _ HTML.escape(var.name) _ HTML.escape(name_postfix) -%]
|
|
6 |
[% SET var_name = HTML.escape(name_prefix) _ "cvar_" _ HTML.escape(var.name) _ HTML.escape(name_postfix) %]
|
|
7 | 7 |
|
8 |
[%- IF (hide_non_editable && !var.flag_editable) || var.partsgroup_filtered %]
|
|
9 |
<input type="hidden" name="[% var_name %]" value="[% HTML.escape(var.value) %]"> |
|
8 |
[% IF (hide_non_editable && !var.flag_editable) || var.partsgroup_filtered %] |
|
9 |
<input type="hidden" name="[% var_name %]" value="[% HTML.escape(var.value) %]">
|
|
10 | 10 |
|
11 |
[%- ELSIF !var.valid %]
|
|
12 |
[%- IF show_disabled_message %]
|
|
13 |
<i>[% 'Element disabled' | $T8 %]</i> |
|
14 |
[%- END %]
|
|
11 |
[% ELSIF !var.valid %] |
|
12 |
[% IF show_disabled_message %] |
|
13 |
<i>[% 'Element disabled' | $T8 %]</i>
|
|
14 |
[% END %] |
|
15 | 15 |
|
16 |
[%- ELSIF var.type == 'bool' %]
|
|
17 |
<input type="checkbox" name="[% var_name %]" value="1"[% IF var.value %] checked[% END %]> |
|
16 |
[% ELSIF var.type == 'bool' %] |
|
17 |
<input type="checkbox" name="[% var_name %]" value="1"[% IF var.value %] checked[% END %]>
|
|
18 | 18 |
|
19 |
[%- ELSIF var.type == 'textfield' %]
|
|
20 |
<textarea name="[% var_name %]" cols="[% HTML.escape(var.width) %]" rows="[% HTML.escape(var.height) %]">[% HTML.escape(var.value) %]</textarea> |
|
19 |
[% ELSIF var.type == 'textfield' %] |
|
20 |
<textarea name="[% var_name %]" cols="[% HTML.escape(var.width) %]" rows="[% HTML.escape(var.height) %]">[% HTML.escape(var.value) %]</textarea>
|
|
21 | 21 |
|
22 |
[%- ELSIF var.type == 'date' %]
|
|
23 |
[% L.date_tag(var_name, var.value) %] |
|
22 |
[% ELSIF var.type == 'date' %] |
|
23 |
[% L.date_tag(var_name, var.value) %]
|
|
24 | 24 |
|
25 |
[%- ELSIF var.type == 'timestamp' %]
|
|
26 |
<input name="[% var_name %]" value="[% HTML.escape(var.value) %]">
|
|
25 |
[% ELSIF var.type == 'timestamp' %] |
|
26 |
<input type="text" name="[% var_name %]" value="[% HTML.escape(var.value) %]">
|
|
27 | 27 |
|
28 |
[%- ELSIF var.type == 'customer' %]
|
|
29 |
[% P.customer_vendor.picker(var_name, var.value, type='customer') %] |
|
28 |
[% ELSIF var.type == 'customer' %] |
|
29 |
[% P.customer_vendor.picker(var_name, var.value, type='customer') %]
|
|
30 | 30 |
|
31 |
[%- ELSIF var.type == 'vendor' %]
|
|
32 |
[% P.customer_vendor.picker(var_name, var.value, type='vendor') %] |
|
31 |
[% ELSIF var.type == 'vendor' %] |
|
32 |
[% P.customer_vendor.picker(var_name, var.value, type='vendor') %]
|
|
33 | 33 |
|
34 |
[%- ELSIF var.type == 'part' %]
|
|
35 |
[% P.part.picker(var_name, var.value) %] |
|
34 |
[% ELSIF var.type == 'part' %] |
|
35 |
[% P.part.picker(var_name, var.value) %]
|
|
36 | 36 |
|
37 |
[%- ELSIF var.type == 'select' %] |
|
37 |
[% ELSIF var.type == 'select' %] |
|
38 |
<select name="[% var_name %]"> |
|
39 |
[% FOREACH option = var.OPTIONS %] |
|
40 |
<option value="[% option.value | html %]"[% IF option.value == var.value %] selected[% END %]>[% HTML.escape(option.value) %]</option> |
|
41 |
[% END %] |
|
42 |
</select> |
|
38 | 43 |
|
39 |
<select name="[% var_name %]"> |
|
40 |
[%- FOREACH option = var.OPTIONS %] |
|
41 |
<option value="[% option.value | html %]"[% IF option.value == var.value %] selected[% END %]>[% HTML.escape(option.value) %]</option> |
|
42 |
[%- END %] |
|
43 |
</select> |
|
44 |
[% ELSE %] |
|
45 |
<input type="text" name="[% var_name %]" value="[% HTML.escape(var.value) %]"[% IF var.maxlength %] maxlength="[% HTML.escape(var.maxlength) %]"[% END %]> |
|
44 | 46 |
|
45 |
[%- ELSE %] |
|
46 |
<input name="[% var_name %]" value="[% HTML.escape(var.value) %]" [%- IF var.maxlength %] maxlength="[% HTML.escape(var.maxlength) %]"[% END -%]> |
|
47 |
[%- END %] |
|
47 |
[% END %] |
templates/webpages/amcvar/render_inputs_block.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE L %] |
|
4 |
[%- USE P %] |
|
5 |
[%- USE LxERP %][%- USE P -%] |
|
6 |
[%- BLOCK cvar_inputs %] |
|
7 |
[%- SET render_cvar_tag_options = {}; |
|
8 |
render_cvar_tag_options.import(cvar_tag_options) IF cvar_tag_options; |
|
9 |
SET cvar_tag_name = HTML.escape(cvar.name_prefix) _ "cvar_" _ HTML.escape(cvar.var.name) _ HTML.escape(cvar.name_postfix); |
|
10 |
IF !render_cvar_tag_options.id && (cvar.var.type != 'select'); |
|
11 |
SET render_cvar_tag_options.no_id = 1; |
|
12 |
END; |
|
13 |
%] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE L %] |
|
4 |
[% USE P %] |
|
5 |
[% USE LxERP %] |
|
6 |
[% USE P %] |
|
14 | 7 |
|
15 |
[%- IF (!cvar.hide_non_editable || cvar.var.flag_editable) && !cvar.partsgroup_filtered %] |
|
8 |
[% BLOCK cvar_inputs %] |
|
9 |
[% SET render_cvar_tag_options = {}; |
|
10 |
render_cvar_tag_options.import(cvar_tag_options) IF cvar_tag_options; |
|
11 |
SET cvar_tag_name = HTML.escape(cvar.name_prefix) _ "cvar_" _ HTML.escape(cvar.var.name) _ HTML.escape(cvar.name_postfix); |
|
12 |
IF !render_cvar_tag_options.id && (cvar.var.type != 'select'); |
|
13 |
SET render_cvar_tag_options.no_id = 1; |
|
14 |
END; |
|
15 |
%] |
|
16 | 16 |
|
17 |
[%- IF !cvar.valid %] |
|
18 |
[%- IF show_disabled_message %] |
|
19 |
<i>[% 'Element disabled' | $T8 %]</i> |
|
20 |
[%- END %] |
|
17 |
[% IF (!cvar.hide_non_editable || cvar.var.flag_editable) && !cvar.partsgroup_filtered %] |
|
21 | 18 |
|
22 |
[%- ELSIF cvar.var.type == 'bool' %] |
|
23 |
[%- render_cvar_tag_options.import(checked=cvar.value, value=1); |
|
24 |
L.checkbox_tag(cvar_tag_name, render_cvar_tag_options) %] |
|
19 |
[% IF !cvar.valid %] |
|
20 |
[% IF show_disabled_message %] |
|
21 |
<i>[% 'Element disabled' | $T8 %]</i> |
|
22 |
[% END %] |
|
25 | 23 |
|
26 |
[%- ELSIF cvar.var.type == 'textfield' %] |
|
27 |
[% render_cvar_tag_options.import(cols=cvar.var.width, rows=cvar.var.height); |
|
28 |
L.textarea_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
24 |
[% ELSIF cvar.var.type == 'bool' %] |
|
25 |
[% render_cvar_tag_options.import(checked=cvar.value, value=1); L.checkbox_tag(cvar_tag_name, render_cvar_tag_options) %] |
|
29 | 26 |
|
30 |
[%- ELSIF cvar.var.type == 'date' %]
|
|
31 |
[%- L.date_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
27 |
[% ELSIF cvar.var.type == 'textfield' %]
|
|
28 |
[% render_cvar_tag_options.import(cols=cvar.var.width, rows=cvar.var.height); L.textarea_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
32 | 29 |
|
33 |
[%- ELSIF cvar.var.type == 'timestamp' %]
|
|
34 |
[%- L.input_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
30 |
[% ELSIF cvar.var.type == 'date' %]
|
|
31 |
[% L.date_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
35 | 32 |
|
36 |
[%- ELSIF cvar.var.type == 'select' %] |
|
37 |
[%- render_cvar_tag_options.name=cvar_tag_name %] |
|
38 |
<select [% P.stringify_attributes(render_cvar_tag_options) %]> |
|
39 |
[%- IF LxERP.is_rdbo(cvar.var, 'CustomVariableConfig') %] |
|
40 |
[%- FOREACH option = cvar.var.processed_options %] |
|
41 |
[%- SET render_cvar_opts = { |
|
42 |
value = option |
|
43 |
}; |
|
44 |
render_cvar_opts.selected = 'selected' IF option == cvar.value; |
|
45 |
L.html_tag('option', option, render_cvar_opts) %] |
|
46 |
[%- END %] |
|
47 |
[%- ELSE %] |
|
48 |
[%- FOREACH option = cvar.var.OPTIONS %] |
|
49 |
[%- SET render_cvar_opts = { |
|
50 |
value = option.value |
|
51 |
}; |
|
52 |
render_cvar_opts.selected = 'selected' IF option.value == cvar.value; |
|
53 |
L.html_tag('option', option.value, render_cvar_opts) %] |
|
54 |
[%- END %] |
|
55 |
[%- END %] |
|
56 |
</select> |
|
33 |
[% ELSIF cvar.var.type == 'timestamp' %] |
|
34 |
[% L.input_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
57 | 35 |
|
58 |
[%- ELSIF cvar.var.type == 'customer' %] |
|
59 |
[%- render_cvar_tag_options.type = 'customer' %] |
|
60 |
[%- P.customer_vendor.picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
36 |
[% ELSIF cvar.var.type == 'select' %] |
|
37 |
[% render_cvar_tag_options.name=cvar_tag_name %] |
|
38 |
|
|
39 |
<select [% P.stringify_attributes(render_cvar_tag_options) %]> |
|
40 |
[% IF LxERP.is_rdbo(cvar.var, 'CustomVariableConfig') %] |
|
41 |
[% FOREACH option = cvar.var.processed_options %] |
|
42 |
[% SET render_cvar_opts = { |
|
43 |
value = option |
|
44 |
}; |
|
45 |
render_cvar_opts.selected = 'selected' IF option == cvar.value; |
|
46 |
L.html_tag('option', option, render_cvar_opts) %] |
|
47 |
[% END %] |
|
48 |
[% ELSE %] |
|
49 |
[% FOREACH option = cvar.var.OPTIONS %] |
|
50 |
[% SET render_cvar_opts = { |
|
51 |
value = option.value |
|
52 |
}; |
|
53 |
render_cvar_opts.selected = 'selected' IF option.value == cvar.value; |
|
54 |
L.html_tag('option', option.value, render_cvar_opts) %] |
|
55 |
[% END %] |
|
56 |
[% END %] |
|
57 |
</select> |
|
61 | 58 |
|
62 |
[%- ELSIF cvar.var.type == 'vendor' %]
|
|
63 |
[%- render_cvar_tag_options.type = 'vendor' %]
|
|
64 |
[%- P.customer_vendor.picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
59 |
[% ELSIF cvar.var.type == 'customer' %]
|
|
60 |
[% render_cvar_tag_options.type = 'customer' %]
|
|
61 |
[% P.customer_vendor.picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
65 | 62 |
|
66 |
[%- ELSIF cvar.var.type == 'part' %] |
|
67 |
[% P.part.picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
63 |
[% ELSIF cvar.var.type == 'vendor' %] |
|
64 |
[% render_cvar_tag_options.type = 'vendor' %] |
|
65 |
[% P.customer_vendor.picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
68 | 66 |
|
69 |
[%- ELSIF cvar.var.type == 'number' %]
|
|
70 |
[%- L.input_tag(cvar_tag_name, LxERP.format_amount(cvar.value, -2), render_cvar_tag_options) %]
|
|
67 |
[% ELSIF cvar.var.type == 'part' %]
|
|
68 |
[% P.part.picker(cvar_tag_name, cvar.value, render_cvar_tag_options) %]
|
|
71 | 69 |
|
72 |
[%- ELSE %] |
|
73 |
[% render_cvar_tag_options.maxlength=cvar.var.maxlength IF cvar.var.maxlength; |
|
74 |
L.input_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
75 |
[%- END %] |
|
70 |
[% ELSIF cvar.var.type == 'number' %] |
|
71 |
[% L.input_tag(cvar_tag_name, LxERP.format_amount(cvar.value, -2), render_cvar_tag_options) %] |
|
76 | 72 |
|
77 |
[%- END %] |
|
73 |
[% ELSE %] |
|
74 |
[% render_cvar_tag_options.maxlength=cvar.var.maxlength IF cvar.var.maxlength; |
|
75 |
L.input_tag(cvar_tag_name, cvar.value, render_cvar_tag_options) %] |
|
76 |
[% END %] |
|
78 | 77 |
|
79 |
[%- END %] |
|
78 |
[% END %] |
|
79 |
|
|
80 |
[% END # BLOCK cvar_inputs %] |
templates/webpages/amcvar/search_filter.html | ||
---|---|---|
1 |
[%- USE T8 %]
|
|
2 |
[%- USE L %]
|
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 | 3 |
[% USE HTML %] |
4 | 4 |
|
5 |
[%- FOREACH var = variables %]
|
|
6 |
[%- IF var.searchable %]
|
|
7 |
<tr id='cvar_filter_[% var.name %]'> |
|
8 |
<td align="right" valign="top">[% HTML.escape(var.description) %]</td>
|
|
9 |
<td valign="top">
|
|
5 |
[% FOREACH var = variables %]
|
|
6 |
[% IF var.searchable %]
|
|
7 |
<tr id='cvar_filter_[% var.name %]'>
|
|
8 |
<th>[% HTML.escape(var.description) %]</th>
|
|
9 |
<td>
|
|
10 | 10 |
|
11 |
[%- IF var.type == 'bool' %]
|
|
12 |
<select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"> |
|
13 |
<option value="">---</option> |
|
14 |
<option value="yes">[% 'Yes' | $T8 %]</option> |
|
15 |
<option value="no">[% 'No' | $T8 %]</option> |
|
16 |
</select> |
|
11 |
[% IF var.type == 'bool' %]
|
|
12 |
<select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
|
|
13 |
<option value="">---</option>
|
|
14 |
<option value="yes">[% 'Yes' | $T8 %]</option>
|
|
15 |
<option value="no">[% 'No' | $T8 %]</option>
|
|
16 |
</select>
|
|
17 | 17 |
|
18 |
[%- ELSIF var.type == 'date' %]
|
|
19 |
[% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_from') %] |
|
18 |
[% ELSIF var.type == 'date' %]
|
|
19 |
[% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_from') %]
|
|
20 | 20 |
|
21 |
[% 'to (time)' | $T8 %] |
|
22 |
[% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_to') %] |
|
21 |
[% 'to (time)' | $T8 %]
|
|
22 |
[% L.date_tag(filter_prefix _'cvar_'_ HTML.escape(var.name) _'_to') %]
|
|
23 | 23 |
|
24 |
[%- ELSIF var.type == 'number' %]
|
|
25 |
<select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_qtyop"> |
|
26 |
<option selected>==</option> |
|
27 |
<option>=/=</option> |
|
28 |
<option>></option> |
|
29 |
<option>>=</option> |
|
30 |
<option><</option> |
|
31 |
<option><=</option> |
|
32 |
</select> |
|
33 |
<input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
|
|
24 |
[% ELSIF var.type == 'number' %]
|
|
25 |
<select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]_qtyop">
|
|
26 |
<option selected>==</option>
|
|
27 |
<option>=/=</option>
|
|
28 |
<option>></option>
|
|
29 |
<option>>=</option>
|
|
30 |
<option><</option>
|
|
31 |
<option><=</option>
|
|
32 |
</select>
|
|
33 |
<input type="text" name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %] maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
|
|
34 | 34 |
|
35 |
[%- ELSIF var.type == 'customer' %]
|
|
36 |
<input name="[% filter_prefix %]cvar_[% var.name | html %]">
|
|
35 |
[% ELSIF var.type == 'customer' %]
|
|
36 |
<input type="text" name="[% filter_prefix %]cvar_[% var.name | html %]">
|
|
37 | 37 |
|
38 |
[% ELSIF var.type == 'select' %] |
|
39 |
<select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"> |
|
40 |
<option value="" selected>---</option> |
|
41 |
[%- FOREACH option = var.OPTIONS %]
|
|
42 |
<option>[% HTML.escape(option.value) %]</option> |
|
43 |
[%- END %]
|
|
44 |
</select> |
|
38 |
[% ELSIF var.type == 'select' %]
|
|
39 |
<select name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]">
|
|
40 |
<option value="" selected>---</option>
|
|
41 |
[% FOREACH option = var.OPTIONS %]
|
|
42 |
<option>[% HTML.escape(option.value) %]</option>
|
|
43 |
[% END %]
|
|
44 |
</select>
|
|
45 | 45 |
|
46 |
[%- ELSE %]
|
|
47 |
<input name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %]maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
|
|
46 |
[% ELSE %]
|
|
47 |
<input type="text" name="[% filter_prefix %]cvar_[% HTML.escape(var.name) %]"[% IF var.maxlength %] maxlength="[% HTML.escape(var.maxlength) %]"[% END %]>
|
|
48 | 48 |
|
49 |
[%- END %]
|
|
50 |
</td> |
|
51 |
</tr> |
|
52 |
[%- END %]
|
|
53 |
[%- END %]
|
|
49 |
[% END %]
|
|
50 |
</td>
|
|
51 |
</tr>
|
|
52 |
[% END %]
|
|
53 |
[% END %]
|
|
54 | 54 |
[% IF hidden_cvar_filters %] |
55 | 55 |
<tr class="cvar_filter-toggle-wrapper"> |
56 | 56 |
<td></td> |
57 |
<td colspan="3">
|
|
58 |
<a href="javascript:void(0);" class="cvar_filter-toggle"><i>[% 'click here to edit cvars' | $T8 %]</i></a> |
|
57 |
<td> |
|
58 |
<a href="javascript:void(0);" class="cvar_filter-toggle" class="button "><i>[% 'click here to edit cvars' | $T8 %]</i></a>
|
|
59 | 59 |
</td> |
60 | 60 |
</tr> |
61 | 61 |
<script type='text/javascript'> |
templates/webpages/amcvar/search_include.html | ||
---|---|---|
1 | 1 |
[% USE HTML %] |
2 | 2 |
|
3 |
[%- SET start_new_row = '1' %]
|
|
3 |
[% SET start_new_row = '1' %]
|
|
4 | 4 |
|
5 |
[%- FOREACH var = variables %]
|
|
6 |
[%- IF var.includeable %]
|
|
7 |
[%- IF start_new_row %]
|
|
8 |
<tr> |
|
9 |
[%- SET start_new_row = '0' %]
|
|
10 |
[%- END %]
|
|
5 |
[% FOREACH var = variables %]
|
|
6 |
[% IF var.includeable %]
|
|
7 |
[% IF start_new_row %]
|
|
8 |
<tr>
|
|
9 |
[% SET start_new_row = '0' %]
|
|
10 |
[% END %] |
|
11 | 11 |
<td id="[% HTML.escape(include_prefix) %]cvartd_[% HTML.escape(var.name) %]"> |
12 |
<input type="checkbox" |
|
13 |
name="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]" |
|
14 |
id="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]" |
|
15 |
value="[% HTML.escape(include_value) %]" |
|
16 |
[% IF var.included_by_default %] checked[% END %]> |
|
17 |
<label for="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]">[% HTML.escape(var.description) %]</label> |
|
12 |
<input type="checkbox" name="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]" id="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]" value="[% HTML.escape(include_value) %]"[% IF var.included_by_default %] checked[% END %]> |
|
13 |
<label for="[% HTML.escape(include_prefix) %]cvar_[% HTML.escape(var.name) %]">[% HTML.escape(var.description) %]</label> |
|
18 | 14 |
</td> |
19 | 15 |
|
20 |
[%- UNLESS loop.count % 4 %][%- SET start_new_row = '1' %][%- END %] |
|
21 |
[%- IF start_new_row || loop.last %] |
|
22 |
</tr> |
|
23 |
[%- END %] |
|
24 |
[%- END %] |
|
25 |
[%- END %] |
|
16 |
[% UNLESS loop.count % 4 %][% SET start_new_row = '1' %] |
|
17 |
[% END %] |
|
18 |
[% IF start_new_row || loop.last %] |
|
19 |
</tr> |
|
20 |
[% END %] |
|
21 |
[% END %] |
|
22 |
|
|
23 |
[% END %] |
templates/webpages/ap/form_footer.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE HTML %] |
|
3 |
[%- USE L %] |
|
4 |
[%- USE LxERP %][%- USE P -%] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE L %] |
|
4 |
[% USE LxERP %] |
|
5 |
[% USE P %] |
|
5 | 6 |
|
6 |
[%- IF (num_follow_ups && num_due) %]
|
|
7 |
[% IF (num_follow_ups && num_due) %] |
|
7 | 8 |
<p>[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', num_follow_ups, num_due) %]</p> |
8 |
[%- END %]
|
|
9 |
[% END %] |
|
9 | 10 |
|
10 | 11 |
<input name=callback type=hidden value="[% callback | html %]"> |
11 | 12 |
<input name=gldate type=hidden value="[% gldate | html %]"> |
... | ... | |
13 | 14 |
[% P.hidden_tag('draft_description', draft_description) %] |
14 | 15 |
</form> |
15 | 16 |
|
16 |
<script type="text/javascript"> |
|
17 |
<!-- |
|
17 |
<script type="text/javascript"><!-- |
|
18 | 18 |
$(document).ready(function() { |
19 |
[%- SET row=0 %]
|
|
20 |
[%- WHILE row < rowcount %]
|
|
21 |
[%- SET row=row + 1 %]
|
|
19 |
[% SET row=0 %] |
|
20 |
[% WHILE row < rowcount %] |
|
21 |
[% SET row=row + 1 %] |
|
22 | 22 |
$('#AP_amount_chart_id_[% row %]').on('set_item:ChartPicker', function(e, item) { |
23 | 23 |
kivi.GL.update_taxes(this); |
24 | 24 |
}); |
25 |
[%- END %]
|
|
25 |
[% END %] |
|
26 | 26 |
}); |
27 |
--> |
|
28 |
</script> |
|
27 |
--></script> |
templates/webpages/ap/form_header.html | ||
---|---|---|
1 |
[%- USE L %]
|
|
2 |
[%- USE P %]
|
|
3 |
[%- USE HTML %]
|
|
4 |
[%- USE T8 %]
|
|
5 |
[%- USE LxERP %][%- USE P -%]
|
|
1 |
[% USE L %] |
|
2 |
[% USE P %] |
|
3 |
[% USE HTML %] |
|
4 |
[% USE T8 %] |
|
5 |
[% USE LxERP %]
|
|
6 | 6 |
|
7 | 7 |
<h1>[% title | html %]</h1> |
8 | 8 |
|
9 |
[%- INCLUDE 'common/flash.html' %]
|
|
9 |
[% INCLUDE 'common/flash.html' %] |
|
10 | 10 |
|
11 | 11 |
<form method="post" action="[% script | html %]" id="form"> |
12 | 12 |
|
13 | 13 |
<input type="hidden" name="terms" value="[% terms | html %]"> |
14 |
|
|
15 | 14 |
<input type="hidden" name="creditlimit" value="[% creditlimit | html %]"> |
16 | 15 |
<input type="hidden" name="creditremaining" value="[% creditremaining | html %]"> |
17 |
|
|
18 | 16 |
<input type="hidden" name="forex" value="[% forex | html %]"> |
19 | 17 |
<input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]"> |
20 |
|
|
21 | 18 |
<input type="hidden" name="id" value="[% id | html %]"> |
22 | 19 |
<input type="hidden" name="sort" value="[% sort | html %]"> |
23 | 20 |
<input type="hidden" name="closedto" value="[% closedto | html %]"> |
24 | 21 |
<input type="hidden" name="locked" value="[% locked | html %]"> |
25 | 22 |
<input type="hidden" name="title" value="[% title_ | html %]"> |
26 |
|
|
27 | 23 |
<input type="hidden" name="follow_up_trans_id_1" value="[% id | html %]"> |
28 | 24 |
<input type="hidden" name="follow_up_trans_type_1" value="ap_transaction"> |
29 | 25 |
<input type="hidden" name="follow_up_trans_info_1" value="[% follow_up_trans_info | html %]"> |
30 | 26 |
<input type="hidden" name="follow_up_rowcount" value="1"> |
31 |
|
|
32 | 27 |
<input type="hidden" name="defaultcurrency" value="[% defaultcurrency | html %]"> |
33 | 28 |
<input type="hidden" name="fxgain_accno" value="[% fxgain_accno | html %]"> |
34 | 29 |
<input type="hidden" name="fxloss_accno" value="[% fxloss_accno | html %]"> |
35 |
|
|
36 | 30 |
<input type="hidden" name="oldinvtotal" value="[% oldinvtotal | html %]"> |
37 | 31 |
<input type="hidden" name="oldtotalpaid" value="[% oldtotalpaid | html %]"> |
38 |
|
|
39 | 32 |
<input type="hidden" name="taxaccounts" value="[% taxaccounts | html %]"> |
40 |
|
|
41 | 33 |
<input type="hidden" name="rowcount" value="[% rowcount | html %]"> |
42 |
|
|
43 | 34 |
<input type="hidden" name="paidaccounts" value="[% paidaccounts | html %]"> |
44 | 35 |
|
45 | 36 |
[% FOREACH i IN [1..paidaccounts] %] |
46 | 37 |
[% temp = "acc_trans_id_"_ i %] |
47 | 38 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
48 |
|
|
49 | 39 |
[% temp = "gldate_"_ i %] |
50 | 40 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
51 | 41 |
[% END %] |
52 | 42 |
|
43 |
|
|
53 | 44 |
[% IF ( saved_message ) %] |
54 | 45 |
<p>[% saved_message | html %]</p> |
55 | 46 |
[% END %] |
56 | 47 |
|
57 | 48 |
<div id="ap_tabs" class="tabwidget"> |
58 |
<ul> |
|
49 |
|
|
50 |
<ul> |
|
59 | 51 |
<li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li> |
60 |
[%- IF INSTANCE_CONF.get_webdav %]
|
|
61 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li> |
|
62 |
[%- END %]
|
|
63 |
[%- IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
64 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li>
|
|
65 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li>
|
|
66 |
[%- END %]
|
|
67 |
[%- IF id %]
|
|
68 |
[%- IF AUTH.assert('record_links', 1) %]
|
|
52 |
[% IF INSTANCE_CONF.get_webdav %]
|
|
53 |
<li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
|
|
54 |
[% END %]
|
|
55 |
[% IF id AND INSTANCE_CONF.get_doc_storage %]
|
|
56 |
<li><a href="controller.pl?action=File/list&file_type=document&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Documents' | $T8 %]</a></li> |
|
57 |
<li><a href="controller.pl?action=File/list&file_type=attachment&object_type=purchase_invoice&object_id=[% HTML.url(id) %]">[% 'Attachments' | $T8 %]</a></li> |
|
58 |
[% END %]
|
|
59 |
[% IF id %]
|
|
60 |
[% IF AUTH.assert('record_links', 1) %]
|
|
69 | 61 |
<li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=PurchaseInvoice&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li> |
70 |
[%- END %]
|
|
62 |
[% END %]
|
|
71 | 63 |
<li><a href="[% 'controller.pl?action=AccTrans/list_transactions&trans_id=' _ HTML.url(id) | html %]">[% LxERP.t8('Transactions') %]</a></li> |
72 |
[%- END %]
|
|
73 |
</ul>
|
|
64 |
[% END %]
|
|
65 |
</ul> |
|
74 | 66 |
|
75 | 67 |
<div id="ui-tabs-basic-data"> |
76 |
<table width="100%"> |
|
77 |
<tr valign="top"> |
|
78 |
<td> |
|
79 |
<table width="100%"> |
|
80 |
<tr valign="top"> |
|
81 |
<td> |
|
82 |
<table> |
|
83 |
<tr> |
|
84 |
<th align="right" nowrap>[% 'Vendor' | $T8 %]</th> |
|
85 |
<td colspan="3"> |
|
86 |
[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", style="width: 300px", onchange="\$('#update_button').click()") %] |
|
87 |
[% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)')) %] |
|
88 |
[% L.hidden_tag("previous_vendor_id", vendor_id) %] |
|
89 |
</td> |
|
90 |
</tr> |
|
91 |
|
|
92 |
<tr> |
|
93 |
<th align="right" valign="top">[% LxERP.t8("Credit Limit") %]</th> |
|
94 |
<td> |
|
95 |
[% creditlimit | html %]; |
|
96 |
[% LxERP.t8("Remaining") %] |
|
97 |
<span class="plus[% creditremaining_plus %]">[% creditremaining | html %]</span> |
|
98 |
</td> |
|
99 |
</tr> |
|
100 | 68 |
|
101 |
[%- IF invoice_obj.sepa_exports.as_list.size %] |
|
102 |
<tr> |
|
103 |
<th align="right">[% LxERP.t8("SEPA exports") %]</th> |
|
104 |
<td> |
|
105 |
[% FOREACH export = invoice_obj.sepa_exports.as_list %] |
|
106 |
<a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> |
|
107 |
[% UNLESS loop.last %], [% END %] |
|
108 |
[% END %] |
|
109 |
</td> |
|
110 |
</tr> |
|
111 |
[%- END %] |
|
69 |
<div class="wrapper"> |
|
112 | 70 |
|
113 |
<tr> |
|
114 |
<th align="right" nowrap>[% 'Currency' | $T8 %]</th> |
|
115 |
<td>[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name") %]</td> |
|
116 |
|
|
117 |
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %] |
|
118 |
<th align=right>[% 'Exchangerate' | $T8 %]</th> |
|
119 |
[% IF ( forex ) %] |
|
120 |
<td><input type="hidden" name="exchangerate" value="[% exchangerate | html %]">[% exchangerate | html %]</td> |
|
121 |
[% ELSE %] |
|
122 |
<td><input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]"></td> |
|
123 |
[% END %] |
|
124 |
[% END %] |
|
71 |
<table class="tbl-horizontal"> |
|
72 |
<caption>[% 'Vendor & Order' | $T8 %]</caption> |
|
73 |
<colgroup> <col class="wi-mediumsmall"><col class="wi-lightwide"> </colgroup> |
|
74 |
<tbody> |
|
75 |
<tr> |
|
76 |
<th>[% 'Vendor' | $T8 %]</th> |
|
77 |
<td class="wi-lightwide">[% P.customer_vendor.picker("vendor_id", vendor_id, type="vendor", onchange="\$('#update_button').click()") %][% L.button_tag("show_vc_details('vendor')", LxERP.t8('Details (one letter abbreviation)'), class='wi-tiny neutral') %] [% L.hidden_tag("previous_vendor_id", vendor_id) %] </td> |
|
78 |
</tr> |
|
79 |
<tr> |
|
80 |
<th>[% LxERP.t8("Credit Limit") %]</th> |
|
81 |
<td><span class="data wi-lightwide">[% creditlimit | html %], [% LxERP.t8("Remaining") %] <span class="plus[% creditremaining_plus %]">[% creditremaining | html %]</span></span> </td> |
|
82 |
</tr> |
|
83 |
[% IF invoice_obj.sepa_exports.as_list.size %] |
|
84 |
<tr> |
|
85 |
<th>[% LxERP.t8("SEPA exports") %]</th> |
|
86 |
<td> [% FOREACH export = invoice_obj.sepa_exports.as_list %] <a href="sepa.pl?action=bank_transfer_edit&vc=vendor&id=[% HTML.url(export.id) %]">[% HTML.escape(export.id) %]</a> [% UNLESS loop.last %], [% END %] [% END %] </td> |
|
87 |
</tr> |
|
88 |
[% END %] |
|
89 |
<tr> |
|
90 |
<th>[% 'Currency' | $T8 %]</th> |
|
91 |
<th> |
|
92 |
[% L.select_tag("currency", currencies, default=currency, value_key="name", title_key="name", class="wi-small") %] |
|
93 |
[% IF ( defaultcurrency && (currency != defaultcurrency) ) %] |
|
94 |
[% 'Exchangerate' | $T8 %] |
|
95 |
[% IF ( forex ) %] |
|
96 |
<input type="hidden" name="exchangerate" value="[% exchangerate | html %]"> |
|
97 |
[% exchangerate | html %] |
|
98 |
[% ELSE %] |
|
99 |
<input type="text" name="exchangerate" size="10" value="[% exchangerate | html %]"> |
|
100 |
[% END %] |
|
101 |
[% END %] |
|
102 |
</th> |
|
103 |
</tr> |
|
104 |
[% IF ALL_DEPARTMENTS %] |
|
105 |
<tr> |
|
106 |
<th>[% 'Department' | $T8 %]</th> |
|
107 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class='wi-lightwide') %]</td> |
|
108 |
</tr> |
|
109 |
[% END %] |
|
110 |
<tr> |
|
111 |
<th>[% 'Tax Included' | $T8 %]</th> |
|
112 |
<th><input name="taxincluded" type="checkbox" value="1" [% if ( taxincluded ) %]checked[% end %]></th> |
|
113 |
</tr> |
|
114 |
<tr> |
|
115 |
<th>[% 'direct debit' | $T8 %]</th> |
|
116 |
<th><input name="direct_debit" type="checkbox" value="1" [% if (direct_debit) %]checked[% end %]> </th> |
|
117 |
</tr> |
|
118 |
</tbody> |
|
119 |
</table> |
|
125 | 120 |
|
126 |
</tr> |
|
121 |
<table class="tbl-horizontal"> |
|
122 |
<caption>[% 'Notes' | $T8 %]</caption> |
|
123 |
<colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup> |
|
124 |
<tbody> |
|
125 |
<tr> |
|
126 |
<td> <textarea name="notes" rows="[% textarea_rows %]" cols="30" class="wi-wide" [% readonly %]>[% notes | html %]</textarea> |
|
127 |
</td> |
|
128 |
</tr> |
|
129 |
<tr> |
|
130 |
<td><span class="label above">[% 'Notes for vendor' | $T8 %]</span><textarea name="intnotes" rows="[% textarea_rows %]" cols="30" readonly class="wi-wide">[% intnotes | html %]</textarea> |
|
131 |
</td> |
|
132 |
</tr> |
|
133 |
</tbody> |
|
134 |
</table> |
|
127 | 135 |
|
128 |
[% IF ALL_DEPARTMENTS %] |
|
129 |
<tr> |
|
130 |
<th align="right" nowrap>[% 'Department' | $T8 %]</th> |
|
131 |
<td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1) %]</td> |
|
132 |
</tr> |
|
133 |
[% END %] |
|
136 |
<table class="tbl-horizontal"> |
|
137 |
<caption>[% 'Number & Dates' | $T8 %]</caption> |
|
138 |
<tbody> |
|
139 |
<tr> |
|
140 |
<th>[% 'Invoice Number' | $T8 %]</th> |
|
141 |
<td>[% L.input_tag("invnumber", invnumber, size="11", readonly=readonly) %]</td> |
|
142 |
</tr> |
|
143 |
<tr> |
|
144 |
<th>[% 'Order Number' | $T8 %]</th> |
|
145 |
<td>[% L.input_tag("ordnumber", ordnumber, size="11", readonly=readonly) %]</td> |
|
146 |
</tr> |
|
147 |
<tr> |
|
148 |
<th>[% 'Invoice Date' | $T8 %]</th> |
|
149 |
<td>[% L.date_tag('transdate', transdate) %]</td> |
|
150 |
</tr> |
|
151 |
<tr> |
|
152 |
<th>[% 'Due Date' | $T8 %]</th> |
|
153 |
<td>[% L.date_tag('duedate', duedate) %]</td> |
|
154 |
</tr> |
|
155 |
<tr> |
|
156 |
<th>[% 'Project Number' | $T8 %]</th> |
|
157 |
<td> [% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber', onChange = "document.getElementById('update_button').click();") %] </td> |
|
158 |
</tr> |
|
159 |
</tbody> |
|
160 |
</table> |
|
134 | 161 |
|
135 |
<tr> |
|
136 |
<td align="right"><input name="taxincluded" class="checkbox" type="checkbox" value="1" [% IF ( taxincluded ) %]checked[% END %]></td> |
|
137 |
<th align=left nowrap>[% 'Tax Included' | $T8 %]</th> |
|
138 |
</tr> |
|
139 |
<tr> |
|
140 |
<td align="right"><input name="direct_debit" class="checkbox" type="checkbox" value="1" [% IF direct_debit %]checked[% END %]></td> |
|
141 |
<th align="left" nowrap>[% 'direct debit' | $T8 %]</th> |
|
142 |
</tr> |
|
143 |
</table> |
|
144 |
</td> |
|
162 |
</div><!-- /.wrapper --> |
|
145 | 163 |
|
146 |
<td align="right"> |
|
147 |
<table> |
|
148 |
<tr> |
|
149 |
<th align="right" nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
150 |
<td>[% L.input_tag("invnumber", invnumber, size="11", readonly=readonly) %]</td> |
|
151 |
</tr> |
|
152 |
<tr> |
|
153 |
<th align="right" nowrap>[% 'Order Number' | $T8 %]</th> |
|
154 |
<td>[% L.input_tag("ordnumber", ordnumber, size="11", readonly=readonly) %]</td> |
|
155 |
</tr> |
|
156 |
<tr> |
|
157 |
<th align="right" nowrap>[% 'Invoice Date' | $T8 %]</th> |
|
158 |
<td>[% L.date_tag('transdate', transdate) %]</td> |
|
159 |
</tr> |
|
160 |
<tr> |
|
161 |
<th align="right" nowrap>[% 'Due Date' | $T8 %]</th> |
|
162 |
<td>[% L.date_tag('duedate', duedate) %]</td> |
|
163 |
</tr> |
|
164 |
<tr> |
|
165 |
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th> |
|
166 |
<td> |
|
167 |
[% L.select_tag('globalproject_id', ALL_PROJECTS, with_empty = 1, default = globalproject_id, value_key = 'id', title_key = 'projectnumber', onChange = "document.getElementById('update_button').click();") %] |
|
168 |
</td> |
|
169 |
</tr> |
|
170 |
</table> |
|
171 |
</td> |
|
172 |
</tr> |
|
173 |
</table> |
|
174 |
</td> |
|
175 |
</tr> |
|
164 |
<div class="wrapper"> |
|
176 | 165 |
|
177 |
<tr> |
|
178 |
<td> |
|
179 |
<table width=100%> |
|
180 |
<tr class=listheading> |
|
181 |
<th class=listheading style="width:15%">[% 'Account' | $T8 %]</th> |
|
182 |
<th class=listheading style="width:10%">[% 'Amount' | $T8 %]</th> |
|
183 |
<th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th> |
|
184 |
<th class=listheading style="width:10%">[% 'Taxkey' | $T8 %]</th> |
|
185 |
<th class=listheading style="width:10%">[% 'Project' | $T8 %]</th> |
|
186 |
</tr> |
|
166 |
<table class="tbl-list"> |
|
167 |
<caption>[% 'Transactions' | $T8 %]</caption> |
|
168 |
<thead> |
|
169 |
<tr> |
|
170 |
<th>[% 'Account' | $T8 %]</th> |
|
171 |
<th class="right">[% 'Amount' | $T8 %]</th> |
|
172 |
<th class="right">[% 'Tax' | $T8 %]</th> |
|
173 |
<th>[% 'Taxkey' | $T8 %]</th> |
|
174 |
<th>[% 'Project' | $T8 %]</th> |
|
175 |
</tr> |
|
176 |
</thead> |
|
177 |
<tbody> |
|
178 |
[% FOREACH i IN [1..rowcount] %] |
|
179 |
<tr> |
|
180 |
<td class="wi-wide"> |
|
181 |
[% SET selected_chart_id = "AP_amount_chart_id_"_ i %] |
|
182 |
[% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus wi-wide" : "wi-wide") ) %] |
|
183 |
[% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] |
|
184 |
<input type="hidden" name="tax_[% i %]" value="[% temp = " tax"_ i %][% $temp | html %]"> |
|
185 |
</td> |
|
186 |
<td class="numeric"> |
|
187 |
<input type="text" name="amount_[% i %]" size="10" value="[% temp = " amount_"_ i %][% $temp | html %]" class="numeric wi-small"> |
|
188 |
</td> |
|
189 |
<td class="numeric">[% temp = "tax_"_ i %][% $temp | html %]</td> |
|
190 |
<td> |
|
191 |
[% temp = 'selected_taxchart_'_ i %] [% taxcharts = 'taxcharts_' _ i %] |
|
192 |
[% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, class='wi-lightwide') %] |
|
193 |
</td> |
|
194 |
<td> |
|
195 |
[% temp = "project_id_"_ i %] |
|
196 |
[% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = loop.last ? globalproject_id : $temp, value_key = 'id', title_key = 'projectnumber') %] |
|
197 |
</td> |
|
198 |
</tr> |
|
199 |
[% END %] |
|
200 |
</tbody> |
|
201 |
<tfoot> |
|
202 |
<tr> |
|
203 |
<td class="wi-wide">[% P.chart.picker('AP_chart_id', AP_chart_id, class="wi-wide", type="AP") %] </td> |
|
204 |
<td class="numeric">[% invtotal | html %]</td> |
|
205 |
<td colspan="3"></td> |
|
206 |
</tr> |
|
207 |
</tfoot> |
|
208 |
</table> |
|
187 | 209 |
|
188 |
[% FOREACH i IN [1..rowcount] %] |
|
189 |
<tr> |
|
190 |
<td> |
|
191 |
[% SET selected_chart_id = "AP_amount_chart_id_"_ i %] |
|
192 |
[% P.chart.picker("AP_amount_chart_id_" _ i, $selected_chart_id, style="width: 400px", type="AP_amount", class=(initial_focus == 'row_' _ i ? "initial_focus" : "")) %] |
|
193 |
[% L.hidden_tag("previous_AP_amount_chart_id_" _ i, $selected_chart_id) %] |
|
194 |
<input type="hidden" name="tax_[% i %]" value="[% temp = "tax"_ i %][% $temp | html %]"> |
|
195 |
</td> |
|
196 |
<td> |
|
197 |
<input name="amount_[% i %]" size="10" value="[% temp = "amount_"_ i %][% $temp | html %]"> |
|
198 |
</td> |
|
199 |
<td> |
|
200 |
[% temp = "tax_"_ i %][% $temp | html %] |
|
201 |
</td> |
|
202 |
<td> |
|
203 |
[% temp = 'selected_taxchart_'_ i %] |
|
204 |
[% taxcharts = 'taxcharts_' _ i %] |
|
205 |
[% L.select_tag('taxchart_'_ i, $taxcharts, value_title_sub = \taxchart_value_title_sub, default = $temp, style="width: 250px") %] |
|
206 |
</td> |
|
207 |
<td> |
|
208 |
[% temp = "project_id_"_ i %] |
|
209 |
[% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = loop.last ? globalproject_id : $temp, value_key = 'id', title_key = 'projectnumber') %] |
|
210 |
</td> |
|
211 |
</tr> |
|
210 |
[% UNLESS no_payment_bookings %] |
|
211 |
<table class="tbl-list"> |
|
212 |
<caption>[% 'Payments' | $T8 %]</caption> |
|
213 |
<thead> |
|
214 |
<tr> |
|
215 |
<th>[% 'Date' | $T8 %]</th> |
|
216 |
<th>[% 'Source' | $T8 %]</th> |
|
217 |
<th>[% 'Memo' | $T8 %]</th> |
|
218 |
<th>[% 'Amount' | $T8 %]</th> |
|
219 |
<th></th> |
|
220 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
221 |
<th>[% 'Exch' | $T8 %]</th> |
|
212 | 222 |
[% END %] |
213 |
|
|
214 |
<tr> |
|
215 |
<td colspan="6"> |
|
216 |
<hr noshade> |
|
217 |
</td> |
|
218 |
</tr> |
|
219 |
<tr> |
|
223 |
<th>[% 'Account' | $T8 %]</th> |
|
224 |
<th>[% 'Project Number' | $T8 %]</th> |
|
225 |
</tr> |
|
226 |
</thead> |
|
227 |
<tbody> |
|
228 |
[% FOREACH i IN [1..paidaccounts] %] [% temp = "paidaccount_changeable_"_ i %] [% changeable = $temp %] |
|
229 |
<tr> |
|
230 |
[% temp = "datepaid_"_ i %] |
|
231 |
<td> |
|
232 |
[% IF( changeable ) %] [% L.date_tag(temp, $temp ? $temp : today) %] |
|
233 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% END %] |
|
234 |
</td> |
|
235 |
<td> |
|
236 |
[% temp = "source_"_ i %] |
|
237 |
[% IF( changeable ) %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
238 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]">[% END %] |
|
239 |
</td> |
|
240 |
<td> |
|
241 |
[% temp = "memo_"_ i %] |
|
242 |
[% IF( changeable ) %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
243 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% END %] |
|
244 |
</td> |
|
245 |
<td> |
|
246 |
[% temp = "paid_"_ i %] |
|
247 |
[% IF( changeable ) %] |
|
248 |
<input name="[% temp %]" data-validate="number" value="[% $temp | html %]" size="11" class="numeric"> |
|
249 |
[% ELSE %] |
|
250 |
[% $temp | html %] |
|
251 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
252 |
[% END %] |
|
253 |
</td> |
|
254 |
<td> |
|
255 |
[% IF changeable && loop.last && paid_missing > 0 %] <input type="button" id="ap_set_to_paid_missing" value="[% " set to paid missing" | $t8 %]"> [% END %] |
|
256 |
</td> |
|
257 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
220 | 258 |
<td> |
221 |
[% P.chart.picker('AP_chart_id', AP_chart_id, style="width: 400px", type="AP") %] |
|
259 |
[% temp = "exchangerate_"_ i %] |
|
260 |
[% temp_forex = "forex_"_ i %] |
|
261 |
[% IF( $temp_forex || !changeable ) %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
262 |
[% ELSE %] <input type="text" name="[% temp %]" size="11" value="[% $temp | html %]"> [% END %] |
|
263 |
<input type="hidden" name="[% temp_forex %]" value="[% $temp_forex | html %]"> |
|
222 | 264 |
</td> |
223 |
<th align="left">[% invtotal | html %]</th> |
|
224 |
<td colspan="4"></td> |
|
225 |
</tr> |
|
226 |
</table> |
|
227 |
</td> |
|
265 |
[% END %] |
|
266 |
<td> |
|
267 |
[% temp = "AP_paid_"_ i %] |
|
268 |
[% IF( changeable ) %] [% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] |
|
269 |
[% ELSE %] [% $temp | html %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% END %] |
|
270 |
</td> |
|
271 |
<td> |
|
272 |
[% temp = "paid_project_id_"_ i %] |
|
273 |
[% IF( changeable ) %] [% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = $temp, value_key = 'id', title_key = 'projectnumber') %] |
|
274 |
[% ELSE %] <input type="hidden" name="[% temp %]" value="[% $temp | html %]"> [% temp = "label"_ temp %] [% $temp | html %] [% END %] |
|
275 |
</td> |
|
276 |
</tr> |
|
277 |
[% END %] |
|
278 |
</tbody> |
|
279 |
<tfoot> |
|
280 |
<tr> |
|
281 |
<td></td> |
|
282 |
<td></td> |
|
283 |
<th class="right">[% 'Total' | $T8 %]</th> |
|
284 |
<td class="numeric">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
285 |
<td></td> |
|
286 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
287 |
<th></th> |
|
288 |
[% END %] |
|
289 |
<td></td> |
|
290 |
<td></td> |
|
228 | 291 |
</tr> |
229 | 292 |
<tr> |
230 |
<td> |
|
231 |
<table width="100%"> |
|
232 |
<tr> |
|
233 |
<th align="left" width="1%">[% 'Notes' | $T8 %]</th> |
|
234 |
<td align="left"> |
|
235 |
<textarea name="notes" rows="[% textarea_rows %]" cols="50" wrap="soft" [% readonly %]>[% notes | html %]</textarea> |
|
236 |
</td> |
|
237 |
|
|
238 |
<th align="left" width=1%>[% 'Notes for vendor' | $T8 %]</th> |
|
239 |
<td align="left"> |
|
240 |
<textarea name="intnotes" rows="[% textarea_rows %]" cols="50" wrap="soft" readonly>[% intnotes | html %]</textarea> |
|
241 |
</td> |
|
242 |
</tr> |
|
243 |
</table> |
|
244 |
</td> |
|
245 |
</tr> |
|
246 |
<tr> |
|
247 |
<td> |
|
248 |
[% UNLESS no_payment_bookings %] |
|
249 |
<table width="100%"> |
|
250 |
<tr class="listheading"> |
|
251 |
<th class="listheading" colspan="7">[% 'Payments' | $T8 %]</th> |
|
252 |
</tr> |
|
253 |
|
|
254 |
<tr> |
|
255 |
<th>[% 'Date' | $T8 %]</th> |
|
256 |
<th>[% 'Source' | $T8 %]</th> |
|
257 |
<th>[% 'Memo' | $T8 %]</th> |
|
258 |
<th>[% 'Amount' | $T8 %]</th> |
|
259 |
<th></th> |
|
260 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
261 |
<th>[% 'Exch' | $T8 %]</th> |
|
262 |
[% END %] |
|
263 |
<th>[% 'Account' | $T8 %]</th> |
|
264 |
<th>[% 'Project Number' | $T8 %]</th> |
|
265 |
</tr> |
|
266 |
|
|
267 |
[% FOREACH i IN [1..paidaccounts] %] |
|
268 |
[% temp = "paidaccount_changeable_"_ i %] |
|
269 |
[% changeable = $temp %] |
|
270 |
|
|
271 |
<tr> |
|
272 |
[% temp = "datepaid_"_ i %] |
|
273 |
<td align="center"> |
|
274 |
[% IF( changeable ) %] |
|
275 |
[% L.date_tag(temp, $temp ? $temp : today) %] |
|
276 |
[% ELSE %] |
|
277 |
[% $temp | html %] |
|
278 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
279 |
[% END %] |
|
280 |
</td> |
|
281 |
|
|
282 |
[% temp = "source_"_ i %] |
|
283 |
<td align="center"> |
|
284 |
[% IF( changeable ) %] |
|
285 |
<input name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
286 |
[% ELSE %] |
|
287 |
[% $temp | html %] |
|
288 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
289 |
[% END %] |
|
290 |
</td> |
|
291 |
|
|
292 |
[% temp = "memo_"_ i %] |
|
293 |
<td align="center"> |
|
294 |
[% IF( changeable ) %] |
|
295 |
<input name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
296 |
[% ELSE %] |
|
297 |
[% $temp | html %] |
|
298 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
299 |
[% END %] |
|
300 |
</td> |
|
301 |
|
|
302 |
[% temp = "paid_"_ i %] |
|
303 |
<td align="center"> |
|
304 |
[% IF( changeable ) %] |
|
305 |
<input name="[% temp %]" size="11" data-validate="number" class="numeric" value="[% $temp | html %]"> |
|
306 |
[% ELSE %] |
|
307 |
[% $temp | html %] |
|
308 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
309 |
[% END %] |
|
310 |
</td> |
|
311 |
|
|
312 |
<td> |
|
313 |
[% IF changeable && loop.last && paid_missing > 0 %] |
|
314 |
<input type="button" id="ap_set_to_paid_missing" value="[% "Set to paid missing" | $T8 %]"> |
|
315 |
[% END %] |
|
316 |
</td> |
|
317 |
|
|
318 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
319 |
<td align="center"> |
|
320 |
[% temp = "exchangerate_"_ i %] |
|
321 |
[% temp_forex = "forex_"_ i %] |
|
322 |
|
|
323 |
[% IF( $temp_forex || !changeable ) %] |
|
324 |
[% $temp | html %] |
|
325 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
326 |
[% ELSE %] |
|
327 |
<input name="[% temp %]" size="11" value="[% $temp | html %]"> |
|
328 |
[% END %] |
|
329 |
|
|
330 |
<input type=hidden name="[% temp_forex %]" value="[% $temp_forex | html %]"> |
|
331 |
</td> |
|
332 |
[% END %] |
|
293 |
<td></td> |
|
294 |
<td></td> |
|
295 |
<th class="right">[% 'Missing amount' | $T8 %]</th> |
|
296 |
<td class="numeric">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
297 |
<td></td> |
|
298 |
[% IF ( !defaultcurrency || (currency != defaultcurrency) ) %] |
|
299 |
<th></th> |
|
300 |
[% END %] |
|
301 |
<td></td> |
|
302 |
<td></td> |
|
303 |
</tr> |
|
304 |
</tfoot> |
|
305 |
</table> |
|
306 |
[% END %] |
|
333 | 307 |
|
334 |
[% temp = "AP_paid_"_ i %] |
|
335 |
[% readonly = "AP_paid_readonly_desc_"_ i %] |
|
336 |
<td align="center"> |
|
337 |
[% IF( changeable ) %] |
|
338 |
[% L.select_tag(temp, ALL_CHARTS_AP_paid, value_title_sub = \AP_paid_value_title_sub, default = ($temp || accno_arap)) %] |
|
339 |
[% ELSE %] |
|
340 |
[% $readonly | html %] |
|
341 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
342 |
[% END %] |
|
343 |
</td> |
|
308 |
</div><!-- /.wrapper --> |
|
344 | 309 |
|
345 |
<td align="center"> |
|
346 |
[% temp = "paid_project_id_"_ i %] |
|
347 |
[% IF( changeable ) %] |
|
348 |
[% L.select_tag(temp, ALL_PROJECTS, with_empty = 1, default = $temp, value_key = 'id', title_key = 'projectnumber') %] |
|
349 |
[% ELSE %] |
|
350 |
<input type="hidden" name="[% temp %]" value="[% $temp | html %]"> |
|
351 |
[% temp = "label"_ temp %] |
|
352 |
[% $temp | html %] |
|
353 |
[% END %] |
|
354 |
</td> |
|
355 |
</tr> |
|
356 |
[% END %] |
|
310 |
</div><!-- /#ui-tabs-basic-data --> |
|
357 | 311 |
|
358 |
<tr> |
|
359 |
<td></td> |
|
360 |
<td></td> |
|
361 |
<td align="center">[% 'Total' | $T8 %]</td> |
|
362 |
<td align="center">[% LxERP.format_amount(totalpaid, 2) | html %]</td> |
|
363 |
</tr> |
|
364 |
<tr> |
|
365 |
<td></td> |
|
366 |
<td></td> |
|
367 |
<td align="center">[% 'Missing amount' | $T8 %]</td> |
|
368 |
<td align="center">[% LxERP.format_amount(paid_missing, 2) | html %]</td> |
|
369 |
</tr> |
|
370 |
</table> |
|
371 |
[% END %] |
|
372 |
</td> |
|
373 |
</tr> |
|
374 |
</table> |
|
375 |
</div> |
|
376 | 312 |
[% PROCESS 'webdav/_list.html' %] |
377 | 313 |
<div id="ui-tabs-1"> |
378 | 314 |
[% LxERP.t8('Loading...') %] |
379 | 315 |
</div> |
316 |
|
|
380 | 317 |
</div> |
381 | 318 |
|
382 |
<hr size="3" noshade> |
|
383 | 319 |
|
384 |
<script type='text/javascript'>
|
|
320 |
<script type="text/javascript">
|
|
385 | 321 |
$('#ap_set_to_paid_missing').click(function(){ $('input[name^="paid_"]:last').val('[% LxERP.format_amount(paid_missing, 2) %]') }); |
386 | 322 |
</script> |
templates/webpages/ap/search.html | ||
---|---|---|
1 |
[%- USE T8 %] |
|
2 |
[%- USE L %][%- USE P -%] |
|
3 |
[% SET style="width: 250px" %] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE L %] |
|
3 |
[% USE P %] |
|
4 |
|
|
4 | 5 |
<h1>[% title %]</h1> |
5 | 6 |
|
6 |
<form method="post" name="search" action="ap.pl" id="form"> |
|
7 |
<form method="post" name="search" action="ap.pl" id="form"> |
|
8 |
|
|
9 |
<div class="wrapper"> |
|
7 | 10 |
|
8 |
<table width=100%>
|
|
9 |
<tr>
|
|
10 |
<td>
|
|
11 |
<table>
|
|
12 |
<tr>
|
|
13 |
<th align=right>[% 'Vendor' | $T8 %]</th>
|
|
14 |
<td>[% L.input_tag("vendor", vendor, style=style, class="initial_focus") %]</td> |
|
15 |
</tr>
|
|
11 |
<table class="tbl-horizontal">
|
|
12 |
<caption>[% 'Vendor & Order' | $T8 %]</caption>
|
|
13 |
<colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup>
|
|
14 |
<tbody>
|
|
15 |
<tr> |
|
16 |
<th>[% 'Vendor' | $T8 %]</th> |
|
17 |
<td>[% L.input_tag("vendor", vendor, style=style, class="initial_focus wi-normal") %]</td>
|
|
18 |
</tr> |
|
16 | 19 |
<tr> |
17 |
<th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
|
|
18 |
<td>[% L.input_tag("cp_name", '', style=style) %]</td>
|
|
20 |
<th>[% 'Contact Person' | $T8 %]</th>
|
|
21 |
<td>[% L.input_tag("cp_name", '', class="wi-normal") %]</td>
|
|
19 | 22 |
</tr> |
20 |
<tr> |
|
21 |
<th align=right nowrap>[% 'Department' | $T8 %]</th> |
|
22 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1, style=style) %]</td> |
|
23 |
</tr> |
|
24 |
<tr> |
|
25 |
<th align=right nowrap>[% 'Invoice Number' | $T8 %]</th> |
|
26 |
<td>[% L.input_tag("invnumber", "", style=style) %]</td> |
|
27 |
</tr> |
|
28 |
<tr> |
|
29 |
<th align=right nowrap>[% 'Order Number' | $T8 %]</th> |
|
30 |
<td>[% L.input_tag("ordnumber", "", style=style) %]</td> |
|
31 |
</tr> |
|
32 |
<tr> |
|
33 |
<th align=right nowrap>[% 'Notes' | $T8 %]</th> |
|
34 |
<td>[% L.input_tag("notes", "", style=style) %]</td> |
|
35 |
<th align="right">[% 'Part Description' | $T8 %]</th> |
|
36 |
<td>[% L.input_tag("parts_description", "", style=style) %]</td> |
|
37 |
</tr> |
|
38 |
<tr> |
|
39 |
<th align="right">[% 'Project Number' | $T8 %]</th> |
|
40 |
<td>[% P.project.picker("project_id", project_id, style=style) %]</td> |
|
41 |
<th align="right">[% 'Part Number' | $T8 %]</th> |
|
42 |
<td>[% L.input_tag("parts_partnumber", "", style=style) %]</td> |
|
43 |
</tr> |
|
44 |
<tr> |
|
45 |
<th align=right nowrap>[% 'Invoice Date' | $T8 %]</th> |
|
46 |
<td> |
|
47 |
[% L.date_tag('transdatefrom') %] |
|
48 |
[% 'Bis' | $T8 %] |
|
49 |
[% L.date_tag('transdateto') %] |
|
50 |
</td> |
|
23 |
<tr> |
|
24 |
<th>[% 'Department' | $T8 %]</th> |
|
25 |
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1, class="wi-normal") %]</td> |
|
26 |
</tr> |
|
27 |
<tr> |
|
28 |
<th>[% 'Part Description' | $T8 %]</th> |
|
29 |
<td>[% L.input_tag("parts_description", "", class="wi-normal") %]</td> |
|
51 | 30 |
</tr> |
52 |
<input type=hidden name=sort value=transdate> |
|
53 |
</table> |
|
54 |
</td> |
|
31 |
<tr> |
|
32 |
<th>[% 'Notes' | $T8 %]</th> |
|
33 |
<td>[% L.input_tag("notes", "", class="wi-normal") %]</td> |
|
34 |
</tr> |
|
35 |
</tbody> |
|
36 |
</table> |
|
37 |
|
|
38 |
<table class="tbl-horizontal"> |
|
39 |
<caption>[% 'Dates & Numbers' | $T8 %]</caption> |
|
40 |
<colgroup> <col class="wi-small"><col class="wi-wide"> </colgroup> |
|
41 |
<tbody> |
|
42 |
<tr> |
|
43 |
<th>[% 'Invoice Date' | $T8 %]</th> |
|
44 |
<td><span class="wi-date">[% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %] </span></td> |
|
45 |
</tr> |
|
46 |
<tr> |
|
47 |
<th>[% 'Invoice Number' | $T8 %]</th> |
|
48 |
<td>[% L.input_tag("invnumber", "", class="wi-small") %]</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th>[% 'Order Number' | $T8 %]</th> |
|
52 |
<td>[% L.input_tag("ordnumber", "", class="wi-small") %]</td> |
|
55 | 53 |
</tr> |
56 | 54 |
<tr> |
57 |
<td> |
|
58 |
<table> |
|
59 |
<tr> |
|
60 |
<th align=right nowrap>[% 'Include in Report' | $T8 %]</th> |
|
61 |
<td> |
|
62 |
<table width=100%> |
|
63 |
<tr> |
|
64 |
<td align=right><input name=open class=checkbox type=checkbox value=Y checked></td> |
|
65 |
<td nowrap>[% 'Open' | $T8 %]</td> |
|
66 |
<td align=right><input name=closed class=checkbox type=checkbox value=Y></td> |
|
67 |
<td nowrap>[% 'Closed' | $T8 %]</td> |
|
68 |
</tr> |
|
69 |
<tr> |
|
70 |
<td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td> |
|
71 |
<td nowrap>[% 'ID' | $T8 %]</td> |
|
72 |
<td align=right><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td> |
|
73 |
<td nowrap>[% 'Invoice Number' | $T8 %]</td> |
|
74 |
<td align=right><input name="l_ordnumber" class=checkbox type=checkbox value=Y></td> |
|
75 |
<td nowrap>[% 'Order Number' | $T8 %]</td> |
|
76 |
</tr> |
|
77 |
<tr> |
|
78 |
<td align=right><input name="l_name" class=checkbox type=checkbox value=Y checked></td> |
|
79 |
<td nowrap>[% 'Vendor' | $T8 %]</td> |
|
80 |
<td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td> |
|
81 |
<td nowrap>[% 'Invoice Date' | $T8 %]</td> |
|
82 |
<td align=right><input name="l_netamount" class=checkbox type=checkbox value=Y></td> |
|
83 |
<td nowrap>[% 'Amount' | $T8 %]</td> |
|
84 |
</tr> |
|
85 |
<tr> |
|
86 |
<td align=right><input name="l_tax" class=checkbox type=checkbox value=Y></td> |
|
87 |
<td nowrap>[% 'Tax' | $T8 %]</td> |
|
88 |
<td align=right><input name="l_amount" class=checkbox type=checkbox value=Y checked></td> |
|
89 |
<td nowrap>[% 'Total' | $T8 %]</td> |
|
90 |
<td align=right><input name="l_datepaid" class=checkbox type=checkbox value=Y></td> |
|
91 |
<td nowrap>[% 'Date Paid' | $T8 %]</td> |
|
92 |
</tr> |
|
93 |
<tr> |
|
94 |
<td align=right><input name="l_paid" class=checkbox type=checkbox value=Y checked></td> |
|
95 |
<td nowrap>[% 'Paid' | $T8 %]</td> |
|
96 |
<td align=right><input name="l_duedate" class=checkbox type=checkbox value=Y></td> |
|
97 |
<td nowrap>[% 'Due Date' | $T8 %]</td> |
|
98 |
<td align=right><input name="l_due" class=checkbox type=checkbox value=Y></td> |
|
99 |
<td nowrap>[% 'Amount Due' | $T8 %]</td> |
|
100 |
</tr> |
|
101 |
<tr> |
|
102 |
<td align=right><input name="l_notes" class=checkbox type=checkbox value=Y></td> |
|
103 |
<td nowrap>[% 'Notes' | $T8 %]</td> |
|
104 |
<td align=right><input name="l_employee" class=checkbox type=checkbox value=Y></td> |
|
105 |
<td nowrap>[% 'Employee' | $T8 %]</td> |
|
106 |
</tr> |
|
107 |
<tr> |
|
108 |
<td align=right><input name="l_subtotal" class=checkbox type=checkbox value=Y></td> |
|
109 |
<td nowrap>[% 'Subtotal' | $T8 %]</td> |
|
110 |
<td align=right><input name="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td> |
|
111 |
<td nowrap>[% 'Document Project Number' | $T8 %]</td> |
|
112 |
</tr> |
|
113 |
<tr> |
|
114 |
<td align=right><input name="l_taxzone" class=checkbox type=checkbox value=Y></td> |
|
115 |
<td nowrap>[% 'Steuersatz' | $T8 %]</td> |
|
116 |
<td align=right><input name="l_payment_terms" class=checkbox type=checkbox value=Y></td> |
|
117 |
<td nowrap>[% 'Payment Terms' | $T8 %]</td> |
|
118 |
<td align=right><input name="l_charts" class=checkbox type=checkbox value=Y></td> |
|
119 |
<td nowrap>[% 'Chart' | $T8 %]</td> |
|
120 |
<td align=right><input name="l_direct_debit" id="l_direct_debit" class=checkbox type=checkbox value=Y></td> |
|
121 |
<td nowrap>[% 'direct debit' | $T8 %]</td> |
|
122 |
</tr> |
|
123 |
<tr> |
|
124 |
<td colspan=4 align=left><b>[% 'Vendor' | $T8 %] </td> |
|
125 |
</tr> |
|
126 |
<tr> |
|
127 |
<td align=right><input name="l_vendornumber" class=checkbox type=checkbox value=Y></td> |
|
128 |
<td nowrap>[% 'Vendor Number' | $T8 %]</td> |
|
129 |
<td align=right><input name="l_country" class=checkbox type=checkbox value=Y></td> |
|
130 |
<td nowrap>[% 'Country' | $T8 %]</td> |
|
131 |
<td align=right><input name="l_ustid" class=checkbox type=checkbox value=Y></td> |
|
132 |
<td nowrap>[% 'USt-IdNr.' | $T8 %]</td> |
|
133 |
</tr> |
|
134 |
</table> |
|
135 |
</td> |
|
136 |
</tr> |
|
137 |
</table> |
|
138 |
</td> |
|
55 |
<th>[% 'Part Number' | $T8 %]</th> |
|
56 |
<td>[% L.input_tag("parts_partnumber", "", class="wi-small") %]</td> |
|
139 | 57 |
</tr> |
140 |
</table> |
|
141 |
</form> |
|
58 |
<tr> |
|
59 |
<th>[% 'Project Number' | $T8 %]</th> |
|
60 |
<td>[% P.project.picker("project_id", project_id, class="wi-small") %]</td> |
|
61 |
</tr> |
|
62 |
</tbody> |
|
63 |
</table> |
|
64 |
|
|
65 |
<input type="hidden" name="sort" value="transdate"> |
|
66 |
|
|
67 |
</div><!-- /.wrapper --> |
|
68 |
<div class="form-addition control-panel"> |
|
69 |
|
|
70 |
<h3>[% 'Include in Report' | $T8 %]</h3> |
|
71 |
|
|
72 |
<div class="list col"> |
|
73 |
<h4>[% 'Status' | $T8 %]</h4> |
|
74 |
<div> |
|
75 |
<input name="open" id="open" type="checkbox" value="Y" checked> |
|
76 |
<label for="open">[% 'Open' | $T8 %]</label> |
|
77 |
</div> |
|
78 |
<div> |
|
79 |
<input name="closed" id="closed" type="checkbox" value="Y"><label for="closed">[% 'Closed' | $T8 %]</label> |
|
80 |
</div> |
|
81 |
<div> |
|
82 |
<input name="l_paid" id="l_paid" type="checkbox" value="Y" checked><label for="l_paid">[% 'Paid' | $T8 %]</label> |
|
83 |
</div> |
|
84 |
<div> |
|
85 |
<input name="l_due" id="l_due" type="checkbox" value="Y"><label for="l_due">[% 'Amount Due' | $T8 %]</label> |
|
86 |
</div> |
|
87 |
</div> |
|
88 |
|
|
89 |
<div class="list col"> |
|
90 |
<h4>[% 'Dates' | $T8 %]</h4> |
|
91 |
<div> |
|
92 |
<input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked><label for="l_transdate">[% 'Invoice Date' | $T8 %]</label> |
|
93 |
</div> |
|
94 |
<div> |
|
95 |
<input name="l_datepaid" id="l_datepaid" type="checkbox" value="Y"><label for="l_datepaid">[% 'Date Paid' | $T8 %]</label> |
|
96 |
</div> |
|
97 |
<div> |
|
98 |
<input name="l_duedate" id="l_duedate" type="checkbox" value="Y"><label for="l_duedate">[% 'Due Date' | $T8 %]</label> |
|
99 |
</div> |
|
100 |
</div> |
|
101 |
|
|
102 |
<div class="list col"> |
|
103 |
<h4>[% 'ID\'s & Numbers' | $T8 %]</h4> |
|
104 |
<div> |
|
105 |
<input name="l_id" id="l_id" type="checkbox" value="Y"><label for="l_id">[% 'ID' | $T8 %]</label> |
|
106 |
</div> |
|
107 |
<div> |
|
108 |
<input name="l_invnumber" id="l_invnumber" type="checkbox" value="Y" checked><label for="l_invnumber">[% 'Invoice Number' | $T8 %]</label> |
|
109 |
</div> |
|
110 |
<div> |
|
111 |
<input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y"><label for="l_ordnumber">[% 'Order Number' | $T8 %]</label> |
|
112 |
</div> |
|
113 |
<div> |
|
114 |
<input name="l_vendornumber" id="l_vendornumber" type="checkbox" value="Y"><label for="l_vendornumber">[% 'Vendor Number' | $T8 %]</label> |
|
115 |
</div> |
|
116 |
<div> |
|
117 |
<input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y"><label for="l_globalprojectnumber">[% 'Document Project Number' | $T8 %]</label> |
|
118 |
</div> |
|
119 |
</div> |
|
120 |
|
|
121 |
<div class="list col"> |
|
122 |
<h4>[% 'Amounts' | $T8 %]</h4> |
|
123 |
<div> |
|
124 |
<input name="l_netamount" id="l_netamount" type="checkbox" value="Y"><label for="l_netamount">[% 'Amount' | $T8 %]</label> |
|
125 |
</div> |
|
126 |
<div> |
|
127 |
<input name="l_tax" id="l_tax" type="checkbox" value="Y"><label for="l_tax">[% 'Tax' | $T8 %]</label> |
|
128 |
</div> |
|
129 |
<div> |
|
130 |
<input name="l_amount" id="l_amount" type="checkbox" value="Y" checked><label for="l_amount">[% 'Total' | $T8 %]</label> |
|
131 |
</div> |
|
132 |
<div> |
|
133 |
<input name="l_subtotal" id="l_subtotal" type="checkbox" value="Y"><label for="l_subtotal">[% 'Subtotal' | $T8 %]</label> |
|
134 |
</div> |
|
135 |
</div> |
|
136 |
|
|
137 |
<div class="list col"> |
|
138 |
<h4>[% 'Handling' | $T8 %]</h4> |
|
139 |
<div> |
|
140 |
<input name="l_employee" id="l_employee" type="checkbox" value="Y"><label for="l_employee">[% 'Employee' | $T8 %]</label> |
|
141 |
</div> |
|
142 |
<div> |
|
143 |
<input name="l_charts" id="l_charts" type="checkbox" value="Y"><label for="l_charts">[% 'Chart' | $T8 %]</label> |
|
144 |
</div> |
|
145 |
</div> |
|
146 |
|
|
147 |
<div class="list col"> |
|
148 |
<h4>[% 'Order' | $T8 %]</h4> |
|
149 |
<div> |
|
150 |
<input name="l_notes" id="l_notes" type="checkbox" value="Y"><label for="l_notes">[% 'Notes' | $T8 %]</label> |
|
151 |
</div> |
|
152 |
<div> |
|
153 |
<input name="l_taxzone" id="l_taxzone" type="checkbox" value="Y"><label for="l_taxzone">[% 'Steuersatz' | $T8 %]</label> |
|
154 |
</div> |
|
155 |
<div> |
|
156 |
<input name="l_payment_terms" id="l_payment_terms" type="checkbox" value="Y"><label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label> |
|
157 |
</div> |
|
158 |
<div> |
|
159 |
<input name="l_direct_debit" id="l_direct_debit" id="l_direct_debit" type="checkbox" value="Y"><label for="l_direct_debit">[% 'direct debit' | $T8 %]</label> |
|
160 |
</div> |
|
161 |
</div> |
|
162 |
|
|
163 |
<div class="list col"> |
|
164 |
<h4>[% 'Vendor' | $T8 %]</h4> |
|
165 |
<div> |
|
166 |
<input name="l_name" id="l_name" type="checkbox" value="Y" checked><label for="l_name">[% 'Vendor' | $T8 %]</label> |
|
167 |
</div> |
|
168 |
<div> |
|
169 |
<input name="l_country" id="l_country" type="checkbox" value="Y"><label for="l_country">[% 'Country' | $T8 %]</label> |
|
170 |
</div> |
|
171 |
<div> |
|
172 |
<input name="l_ustid" id="l_ustid" type="checkbox" value="Y"><label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label> |
|
173 |
</div> |
|
174 |
</div> |
|
175 |
|
|
176 |
</div><!-- /.form-addition --> |
|
177 |
|
|
178 |
</form> |
templates/webpages/ar/ar_transactions_bottom.html | ||
---|---|---|
1 |
[% USE T8 %][% USE HTML %][%- USE LxERP -%][%- USE L -%] |
|
1 |
[% USE T8 %] |
|
2 |
[% USE HTML %] |
|
3 |
[% USE LxERP %] |
|
4 |
[% USE L %] |
|
2 | 5 |
|
3 |
[% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %]
|
|
4 |
[% L.hidden_tag("printer_id") %]
|
|
5 |
</form>
|
|
6 |
[% L.hidden_tag("action", "MassInvoiceCreatePrint/dispatch") %] |
|
7 |
[% L.hidden_tag("printer_id") %] |
|
8 |
</form> |
|
6 | 9 |
|
7 |
<form method="post" action="ar.pl" id="create_new_form">
|
|
10 |
<form method="post" action="ar.pl" id="create_new_form"> |
|
8 | 11 |
[% L.hidden_tag("callback", callback) %] |
9 |
</form>
|
|
12 |
</form> |
|
10 | 13 |
|
11 | 14 |
[% IF ALL_PRINTERS.size %] |
12 |
<div id="print_options" class="hidden">
|
|
13 |
<p>
|
|
14 |
[% LxERP.t8("Print destination") %]:
|
|
15 |
[% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ;
|
|
16 |
CALL printers.import(ALL_PRINTERS);
|
|
17 |
L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=printer_id) %]
|
|
18 |
</p>
|
|
15 |
<div id="print_options" class="hidden"> |
|
16 |
<p> |
|
17 |
[% LxERP.t8("Print destination") %]: |
|
18 |
[% SET printers = [ { description=LxERP.t8("Download PDF, do not print") } ] ; |
|
19 |
CALL printers.import(ALL_PRINTERS); |
|
20 |
L.select_tag("", printers, id="print_options_printer_id", title_key="description", default=printer_id) %] |
|
21 |
</p> |
|
19 | 22 |
|
20 |
<p> |
|
21 |
[% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %] |
|
22 |
</p> |
|
23 |
</div> |
|
23 |
<p>[% L.button_tag("kivi.MassInvoiceCreatePrint.massPrint()", LxERP.t8('Print')) %]</p> |
|
24 |
</div> |
|
24 | 25 |
[% END %] |
templates/webpages/ar/form_footer.html | ||
---|---|---|
1 | 1 |
[% USE LxERP %] |
2 | 2 |
[% USE T8 %] |
3 |
[% USE L %][%- USE P -%] |
|
3 |
[% USE L %] |
|
4 |
[% USE P %] |
|
4 | 5 |
|
5 |
[% IF ( follow_up_length && follow_up_due_length ) %] |
|
6 |
[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_up_length , follow_up_due_length) %] |
|
7 |
[% END %] |
|
6 |
[% IF ( follow_up_length && follow_up_due_length ) %] |
|
7 |
[% LxERP.t8('There are #1 unfinished follow-ups of which #2 are due.', follow_up_length , follow_up_due_length) %] |
|
8 |
[% END %] |
|
9 |
|
|
10 |
<input type="hidden" name="gldate" value="[% gldate | html %]"> |
|
11 |
<input type="hidden" name="callback" value="[% callback | html %]"> |
|
12 |
[% P.hidden_tag('draft_id', draft_id) %] |
|
13 |
[% P.hidden_tag('draft_description', draft_description) %] |
|
8 | 14 |
|
9 |
<input type="hidden" name="gldate" value="[% gldate | html %]"> |
|
10 |
<input type="hidden" name="callback" value="[% callback | html %]"> |
|
11 |
[% P.hidden_tag('draft_id', draft_id) %] |
|
12 |
[% P.hidden_tag('draft_description', draft_description) %] |
|
13 | 15 |
</form> |
14 | 16 |
|
15 |
<script type="text/javascript"> |
|
16 |
<!-- |
|
17 |
<script type="text/javascript"><!-- |
Auch abrufbar als: Unified diff
Neues kivitendo Design Aenderungen in templates/webpages/amcvar/.. ap/.. ar/..