Revision b56f90b2
Von Hans P. Schlaepfer vor etwa 4 Jahren hinzugefügt
templates/webpages/am/edit_tax.html | ||
---|---|---|
5 | 5 |
|
6 | 6 |
<h1>[% 'Tax-O-Matic' | $T8 %] [% title %]</h1> |
7 | 7 |
|
8 |
<form method="post" action="am.pl" id="form"> |
|
9 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
|
10 |
<input type="hidden" name="type" value="tax"> |
|
11 |
|
|
12 |
<table width="100%"> |
|
13 |
<tr> |
|
14 |
<td>[% 'tax_taxkey' | $T8 %]</td> |
|
15 |
<td>[% IF tax_already_used %]<p>[% HTML.escape(taxkey) %]</p> |
|
16 |
<input type="hidden" name="taxkey" size="2" value="[% HTML.escape(taxkey) %]"> |
|
17 |
[% ELSE %]<input name="taxkey" size="2" value="[% HTML.escape(taxkey) %]"> |
|
18 |
[% END %]</td> |
|
19 |
</tr> |
|
20 |
|
|
21 |
<tr> |
|
22 |
<td>[% 'tax_taxdescription' | $T8 %]</td> |
|
23 |
<td><input name="taxdescription" size="60" value="[% HTML.escape(taxdescription) %]"></td> |
|
24 |
</tr> |
|
25 |
|
|
26 |
[%- FOREACH language = LANGUAGES %] |
|
8 |
<form method="post" action="am.pl" id="form"> |
|
9 |
|
|
10 |
<input type="hidden" name="id" value="[% HTML.escape(id) %]"> |
|
11 |
<input type="hidden" name="type" value="tax"> |
|
12 |
|
|
13 |
<div class="wrapper cols"> |
|
14 |
|
|
15 |
<table class="tbl-horizontal col"> |
|
16 |
<caption>[% 'Tax' | $T8 %]</caption> |
|
17 |
<tbody> |
|
18 |
<tr> |
|
19 |
<th>[% 'tax_taxkey' | $T8 %]</th> |
|
20 |
<td> |
|
21 |
[% IF tax_already_used %] |
|
22 |
[% HTML.escape(taxkey) %] |
|
23 |
<input type="hidden" name="taxkey" value="[% HTML.escape(taxkey) %]"> |
|
24 |
[% ELSE %] |
|
25 |
<input name="taxkey" value="[% HTML.escape(taxkey) %]" class="wi-tinynumber" type="text"> |
|
26 |
[% END %] |
|
27 |
</td> |
|
28 |
</tr> |
|
29 |
<tr> |
|
30 |
<th>[% 'tax_taxdescription' | $T8 %]</th> |
|
31 |
<td><input name="taxdescription" value="[% HTML.escape(taxdescription) %]" class="wi-verywide" type="text"></td> |
|
32 |
</tr> |
|
33 |
[% FOREACH language = LANGUAGES %] |
|
34 |
<tr> |
|
35 |
<th>[% HTML.escape(language.description) %] ([% LxERP.t8('Translation') %])</th> |
|
36 |
<td><input name="translation_[% language.id %]" value="[% HTML.escape(TAX.translated_attribute('taxdescription', language, 1)) %]" class="wi-verywide" type="text"></td> |
|
37 |
</tr> |
|
38 |
[% END %] |
|
39 |
<tr> |
|
40 |
<th>[% 'tax_percent' | $T8 %]</th> |
|
41 |
<td> |
|
42 |
[% IF tax_already_used %] |
|
43 |
[% HTML.escape(rate) %]% |
|
44 |
<input type="hidden" name="rate" value="[% HTML.escape(rate) %]"> |
|
45 |
[% ELSE %] |
|
46 |
<input name="rate" value="[% HTML.escape(rate) %]" class="wi-tinynumber" type="text">% |
|
47 |
[% END %] |
|
48 |
</td> |
|
49 |
</tr> |
|
50 |
<tr> |
|
51 |
<th>[% 'tax_chartaccno' | $T8 %]</th> |
|
52 |
<td> |
|
53 |
<select name="chart_id" class="wi-verywide"> |
|
54 |
<option value="">[% 'None' | $T8 %]</option> |
|
55 |
[% FOREACH row = ACCOUNTS %] |
|
56 |
<option value="[% HTML.escape(row.id) %]"[% IF row.selected %] selected[% END %]>[% HTML.escape(row.taxaccount) %]</option> |
|
57 |
[% END %] |
|
58 |
</select> |
|
59 |
</td> |
|
60 |
</tr> |
|
61 |
<tr> |
|
62 |
<th>[% 'Automatic skonto chart sales' | $T8 %]</th> |
|
63 |
<td>[% L.select_tag('skonto_sales_chart_id', AR_PAID, value_title_sub = \skontochart_value_title_sub, with_empty = 1, default = skonto_sales_chart_id, class='wi-verywide') %]</td> |
|
64 |
</tr> |
|
65 |
<tr> |
|
66 |
<th>[% 'Automatic skonto chart purchase' | $T8 %]</th> |
|
67 |
<td>[% L.select_tag('skonto_purchase_chart_id', AP_PAID, value_title_sub = \skontochart_value_title_sub, with_empty = 1, default = skonto_purchase_chart_id class='wi-verywide') %]</td> |
|
68 |
</tr> |
|
27 | 69 |
<tr> |
28 |
<td>[%- HTML.escape(language.description) %] ([%- LxERP.t8('Translation') %])</td> |
|
29 |
<td> |
|
30 |
<input name="translation_[% language.id %]" value="[%- HTML.escape(TAX.translated_attribute('taxdescription', language, 1)) %]" size="60"> |
|
31 |
</td> |
|
70 |
<th>[% 'Account categories' | $T8 %]</th> |
|
71 |
<td> |
|
72 |
[% IF asset %] |
|
73 |
[% L.checkbox_tag('asset', value => 1, checked => 1) %] |
|
74 |
[% ELSE %] |
|
75 |
[% L.checkbox_tag('asset', value => 1, checked => 0) %] |
|
76 |
[% END %] |
|
77 |
[% 'Asset' | $T8 %] (A) <br> |
|
78 |
|
|
79 |
[% IF liability %] |
|
80 |
[% L.checkbox_tag('liability', value => 1, checked => 1) %] |
|
81 |
[% ELSE %] |
|
82 |
[% L.checkbox_tag('liability', value => 1, checked => 0) %] |
|
83 |
[% END %] |
|
84 |
[% 'Liability' | $T8 %] (L) <br> |
|
85 |
|
|
86 |
[% IF equity %] |
|
87 |
[% L.checkbox_tag('equity', value => 1, checked => 1) %] |
|
88 |
[% ELSE %] |
|
89 |
[% L.checkbox_tag('equity', value => 1, checked => 0) %] |
|
90 |
[% END %] |
|
91 |
[% 'Equity' | $T8 %] (Q) <br> |
|
92 |
|
|
93 |
[% IF revenue %] |
|
94 |
[% L.checkbox_tag('revenue', value => 1, checked => 1) %] |
|
95 |
[% ELSE %] |
|
96 |
[% L.checkbox_tag('revenue', value => 1, checked => 0) %] |
|
97 |
[% END %] |
|
98 |
[% 'Revenue' | $T8 %] (I) <br> |
|
99 |
|
|
100 |
[% IF expense %] |
|
101 |
[% L.checkbox_tag('expense', value => 1, checked => 1) %] |
|
102 |
[% ELSE %] |
|
103 |
[% L.checkbox_tag('expense', value => 1, checked => 0) %] |
|
104 |
[% END %] |
|
105 |
[% 'Expense' | $T8 %] (E) <br> |
|
106 |
|
|
107 |
[% IF costs %] |
|
108 |
[% L.checkbox_tag('costs', value => 1, checked => 1) %] |
|
109 |
[% ELSE %] |
|
110 |
[% L.checkbox_tag('costs', value => 1, checked => 0) %] |
|
111 |
[% END %] |
|
112 |
[% 'Costs' | $T8 %] (C) |
|
113 |
</td> |
|
32 | 114 |
</tr> |
33 |
[%- END %] |
|
34 |
|
|
35 |
<tr> |
|
36 |
<td>[% 'tax_percent' | $T8 %]</td> |
|
37 |
<td>[% IF tax_already_used %]<p>[% HTML.escape(rate) %] %</p> |
|
38 |
<input type="hidden" name="rate" size="10" value="[% HTML.escape(rate) %]"> |
|
39 |
[% ELSE %]<input name="rate" size="10" value="[% HTML.escape(rate) %]"> % |
|
40 |
[% END %]</td> |
|
41 |
</tr> |
|
42 |
|
|
43 |
<tr> |
|
44 |
<td>[% 'tax_chartaccno' | $T8 %]</td> |
|
45 |
<td><select name="chart_id"><option value="">[% 'None' | $T8 %]</option>[% FOREACH row = ACCOUNTS %]<option value="[% HTML.escape(row.id) %]" [% IF row.selected %]selected[% END %]>[% HTML.escape(row.taxaccount) %]</option>[% END %]</select></td> |
|
46 |
</tr> |
|
47 |
<tr> |
|
48 |
<td>[% 'Automatic skonto chart sales' | $T8 %]</td> |
|
49 |
<td> [% L.select_tag('skonto_sales_chart_id', AR_PAID, value_title_sub = \skontochart_value_title_sub, with_empty = 1, default = skonto_sales_chart_id) %]</td> |
|
50 |
</tr> |
|
51 |
<tr> |
|
52 |
<td>[% 'Automatic skonto chart purchase' | $T8 %]</td> |
|
53 |
<td> [% L.select_tag('skonto_purchase_chart_id', AP_PAID, value_title_sub = \skontochart_value_title_sub, with_empty = 1, default = skonto_purchase_chart_id) %]</td> |
|
54 |
</tr> |
|
55 |
<tr> |
|
56 |
<td>[% 'Account categories' | $T8 %]</td> |
|
57 |
<td><table> |
|
58 |
<colgroup> |
|
59 |
<col width="10"> |
|
60 |
<col width="130"> |
|
61 |
<col width="10"> |
|
62 |
<col width="130"> |
|
63 |
<col width="10"> |
|
64 |
<col width="130"> |
|
65 |
<col width="10"> |
|
66 |
<col width="130"> |
|
67 |
<col width="10"> |
|
68 |
<col width="130"> |
|
69 |
<col width="10"> |
|
70 |
<col width="130"> |
|
71 |
</colgroup> |
|
72 |
<tr> |
|
73 |
<td align="right">[% IF asset %] |
|
74 |
[% L.checkbox_tag('asset', value => 1, checked => 1, class => 'checkbox') %] |
|
75 |
[% ELSE %] |
|
76 |
[% L.checkbox_tag('asset', value => 1, checked => 0, class => 'checkbox') %] |
|
77 |
[% END %] |
|
78 |
</td> |
|
79 |
<td align="left">[% 'Asset' | $T8 %] (A)</td> |
|
80 |
<td align="right">[% IF liability %] |
|
81 |
[% L.checkbox_tag('liability', value => 1, checked => 1, class => 'checkbox') %] |
|
82 |
[% ELSE %] |
|
83 |
[% L.checkbox_tag('liability', value => 1, checked => 0, class => 'checkbox') %] |
|
84 |
[% END %] |
|
85 |
</td> |
|
86 |
<td align="left">[% 'Liability' | $T8 %] (L)</td> |
|
87 |
<td align="right">[% IF equity %] |
|
88 |
[% L.checkbox_tag('equity', value => 1, checked => 1, class => 'checkbox') %] |
|
89 |
[% ELSE %] |
|
90 |
[% L.checkbox_tag('equity', value => 1, checked => 0, class => 'checkbox') %] |
|
91 |
[% END %] |
|
92 |
</td> |
|
93 |
<td align="left">[% 'Equity' | $T8 %] (Q)</td> |
|
94 |
<td align="right">[% IF revenue %] |
|
95 |
[% L.checkbox_tag('revenue', value => 1, checked => 1, class => 'checkbox') %] |
|
96 |
[% ELSE %] |
|
97 |
[% L.checkbox_tag('revenue', value => 1, checked => 0, class => 'checkbox') %] |
|
98 |
[% END %] |
|
99 |
</td> |
|
100 |
<td align="left">[% 'Revenue' | $T8 %] (I)</td> |
|
101 |
<td align="right">[% IF expense %] |
|
102 |
[% L.checkbox_tag('expense', value => 1, checked => 1, class => 'checkbox') %] |
|
103 |
[% ELSE %] |
|
104 |
[% L.checkbox_tag('expense', value => 1, checked => 0, class => 'checkbox') %] |
|
105 |
[% END %] |
|
106 |
</td> |
|
107 |
<td align="left">[% 'Expense' | $T8 %] (E)</td> |
|
108 |
<td align="right">[% IF costs %] |
|
109 |
[% L.checkbox_tag('costs', value => 1, checked => 1, class => 'checkbox') %] |
|
110 |
[% ELSE %] |
|
111 |
[% L.checkbox_tag('costs', value => 1, checked => 0, class => 'checkbox') %] |
|
112 |
[% END %] |
|
113 |
</td> |
|
114 |
<td align="left">[% 'Costs' | $T8 %] (C)</td> |
|
115 |
</tr> |
|
116 |
</table> |
|
117 |
</td> |
|
118 |
</tr> |
|
119 |
|
|
120 |
</table> |
|
121 |
</table> |
|
122 |
|
|
123 |
[% UNLESS orphaned %] |
|
124 |
<br /> |
|
125 |
[% 'Chartaccounts connected to this Tax:' | $T8 %] |
|
126 |
[% FOREACH row = TAXINUSE %] |
|
127 |
<a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a> |
|
128 |
[% END %] |
|
129 |
<br /> |
|
130 |
[% END %] |
|
131 |
|
|
132 |
<input type="hidden" name="callback" value="[% HTML.escape(callback) %]"> |
|
115 |
</tbody> |
|
116 |
</table> |
|
117 |
|
|
118 |
|
|
119 |
[% UNLESS orphaned %] |
|
120 |
<div class="col"> |
|
121 |
<h3 class="caption">[% 'Chartaccounts connected to this Tax:' | $T8 %]</h3> |
|
122 |
<ul> |
|
123 |
[% FOREACH row = TAXINUSE %] |
|
124 |
<li><a href="am.pl?action=edit_account&id=[% HTML.url(row.id) %]&callback=[% HTML.url(callback) %]">[% HTML.escape(row.accno) %]</a></li> |
|
125 |
[% END %] |
|
126 |
</ul> |
|
127 |
</div> |
|
128 |
[% END %] |
|
129 |
|
|
130 |
<input type="hidden" name="callback" value="[% #HTML.escape(callback) %]"> |
|
131 |
|
|
132 |
</div><!-- /.wrapper --> |
|
133 | 133 |
</form> |
134 |
|
|
135 |
|
Auch abrufbar als: Unified diff
Neues Design 2019 Standard-Code templates/webpages/am/edit_tax.html