Initialer Focus in vielen Berichtsmasken
[kivitendo-erp.git] / templates / webpages / rp / report.html
1 [%- USE HTML %]
2 [%- USE LxERP %]
3 [%- USE L %]
4 [%- USE T8 %]
5
6 [%- BLOCK customized_report %]
7   <tr>
8     <th align=left><input name=reporttype class=radio type=radio value="custom" checked>[% 'Customized Report' | $T8 %]</th>
9   </tr>
10   <tr>
11     <th colspan=1>[% 'Year' | $T8 %]</th>
12     <td><input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus"></td>
13   </tr>
14   <tr>
15     <td align=right> <b>[% 'Yearly' | $T8 %]</b> </td>
16     <th align=left>[% 'Quarterly' | $T8 %]</th>
17     <th align=left colspan=3>[% 'Monthly' | $T8 %]</th>
18   </tr>
19   <tr>
20     <td align=right>&nbsp; <input name=duetyp class=radio type=radio value="13"></td>
21     <td><input name=duetyp class=radio type=radio value="A">&nbsp;1. [% 'Quarter' | $T8 %]</td>
22     <td><input name=duetyp class=radio type=radio value="1" checked>&nbsp;[% 'January' | $T8 %]</td>
23     <td><input name=duetyp class=radio type=radio value="5">&nbsp;[% 'May' | $T8 %]</td>
24     <td><input name=duetyp class=radio type=radio value="9">&nbsp;[% 'September' | $T8 %]</td>
25   </tr>
26   <tr>
27     <td align= right>&nbsp;</td>
28     <td><input name=duetyp class=radio type=radio value="B">&nbsp;2. [% 'Quarter' | $T8 %]</td>
29     <td><input name=duetyp class=radio type=radio value="2">&nbsp;[% 'February' | $T8 %]</td>
30     <td><input name=duetyp class=radio type=radio value="6">&nbsp;[% 'June' | $T8 %]</td>
31     <td><input name=duetyp class=radio type=radio value="10">&nbsp;[% 'October' | $T8 %]</td>
32   </tr>
33   <tr>
34     <td> &nbsp;</td>
35     <td><input name=duetyp class=radio type=radio value="C">&nbsp;3. [% 'Quarter' | $T8 %]</td>
36     <td><input name=duetyp class=radio type=radio value="3">&nbsp;[% 'March' | $T8 %]</td>
37     <td><input name=duetyp class=radio type=radio value="7">&nbsp;[% 'July' | $T8 %]</td>
38     <td><input name=duetyp class=radio type=radio value="11">&nbsp;[% 'November' | $T8 %]</td>
39   </tr>
40   <tr>
41     <td> &nbsp;</td>
42     <td><input name=duetyp class=radio type=radio value="D">&nbsp;4. [% 'Quarter' | $T8 %]</td>
43     <td><input name=duetyp class=radio type=radio value="4">&nbsp;[% 'April' | $T8 %]</td>
44     <td><input name=duetyp class=radio type=radio value="8">&nbsp;[% 'August' | $T8 %]</td>
45     <td><input name=duetyp class=radio type=radio value="12">&nbsp;[% 'December' | $T8 %]</td>
46   </tr>
47   <tr>
48     <td colspan=5><hr size=3 noshade></td>
49   </tr>
50   <tr>
51     <th align=left><input name=reporttype class=radio type=radio value="free">[% 'Free report period' | $T8 %]</th>
52     <td align=left colspan=4>
53       [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
54       [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
55     </td>
56   </tr>
57   <tr>
58     <td colspan=5><hr size=3 noshade></td>
59   </tr>
60 [%- END %]
61 [%- BLOCK cash_or_accrual %]
62   <tr>
63     <th align=left>[% 'Method' | $T8 %]</th>
64     <td colspan=3>
65       [% L.radio_button_tag('method', value='accrual', checked=accrual, label=LxERP.t8('Accrual')) %]
66       [% L.radio_button_tag('method', value='cash', checked=cash, label=LxERP.t8('cash')) %]
67     </td>
68   </tr>
69 [%- END %]
70 [%- BLOCK projectnumber %]
71   <tr>
72     <th align=right nowrap>[% 'Project' | $T8 %]</th>
73     <td colspan=3>[% L.select_tag('project_id', ALL_PROJECTS, title_key = 'projectnumber', with_empty = 1) %]</td>
74   </tr>
75 [%- END %]
76
77 <h1>[% title %]</h1>
78
79 <form method=post action='[% script %]'>
80
81 <input type=hidden name=title value="[% title %]">
82
83 <table border="0">
84 [%- IF selectdepartment %]
85   <tr>
86     <th align="left" nowrap>[% 'Department' | $T8 %]</th>
87     <td colspan=3><select name=department>[% selectdepartment %]</select></td>
88   </tr>
89 [%- END %]
90
91 [%- IF is_projects %]
92   [% INCLUDE projectnumber %]
93   <input type=hidden name=nextsub value=generate_projects>
94   <tr>
95     <th align=right>[% 'as at' | $T8 %]</th>
96     <td> [% L.date_tag('fromdate', fromdate, class='initial_focus') %]</td>
97     <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
98     <td>[% L.date_tag('todate') %]</td>
99   </tr>
100 </table>
101 <table>
102   <tr>
103     <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
104     <td><input name=l_heading class=checkbox type=checkbox value=Y>&nbsp;[% 'Heading' | $T8 %]
105     <input name=l_subtotal class=checkbox type=checkbox value=Y>&nbsp;[% 'Subtotal' | $T8 %]</td>
106   </tr>
107 [%- END %]
108
109 [%- IF is_income_statement %]
110 [%- PROCESS projectnumber %]
111   <input type=hidden name=nextsub value=generate_income_statement>
112 </table>
113 <table>
114 [%- PROCESS customized_report %]
115 [%- PROCESS cash_or_accrual %]
116   <tr>
117     <th align=left nowrap>[% 'Include in Report' | $T8 %]</th>
118     <td><input name=l_cb class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]</td>
119   </tr>
120 [%- END %]
121
122 [%- IF is_bwa %]
123 [%- PROCESS projectnumber %]
124   <input type=hidden name=nextsub value=generate_bwa>
125 </table>
126 <table>
127 [%- PROCESS customized_report %]
128 [%- PROCESS cash_or_accrual %]
129   <tr>
130   <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
131     <td><input name=decimalplaces size=3 value="2"></td>
132   </tr>
133 [%- END %]
134
135 [%- IF is_balance_sheet %]
136   <input type=hidden name=nextsub value=generate_balance_sheet>
137   <tr>
138     <th align=right>[% 'as at' | $T8 %]</th>
139     <td> [% L.date_tag('asofdate', asofdate, class="initial_focus") %]</td>
140     <td><input name=l_cb class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]</td>
141     <td><input name=l_ob class=checkbox type=checkbox value=Y>&nbsp;[% 'only OB Transactions' | $T8 %]</td>
142   </tr>
143   </tr>
144     <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
145     <td>[% L.date_tag('compareasofdate', compareasofdate) %]</td>
146     <td><input name=l_cb_compared class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]</td>
147     <td><input name=l_ob_compared class=checkbox type=checkbox value=Y>&nbsp;[% 'only OB Transactions' | $T8 %]</td>
148   </tr>
149   <tr>
150     <th align=right>[% 'Decimalplaces' | $T8 %]</th>
151     <td><input name=decimalplaces size=3 value="2"></td>
152   </tr>
153 </table>
154 <table>
155 [%- PROCESS cash_or_accrual %]
156   <tr>
157     <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
158     <td><input name=l_heading class=checkbox type=checkbox value=Y>&nbsp;[% 'Heading' | $T8 %]
159     <input name=l_subtotal class=checkbox type=checkbox value=Y>&nbsp;[% 'Subtotal' | $T8 %]
160     <input name=l_accno class=checkbox type=checkbox value=Y>&nbsp;[% 'Account Number' | $T8 %]</td>
161   </tr>
162 [%- END %]
163
164 [%- IF is_trial_balance %]
165 [%- PROCESS projectnumber %]
166   <input type=hidden name=nextsub value=generate_trial_balance>
167 </table>
168 <table>
169 [%- PROCESS customized_report %]
170 [%- PROCESS cash_or_accrual %]
171  <tr>
172    <th align=right colspan=4>[% 'All Accounts' | $T8 %]</th>
173    <td><input name=all_accounts type=checkbox value=1></td>
174  </tr>
175  <tr>
176    <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
177    <td><input name=decimalplaces size=3 value="2"></td>
178  </tr>
179 [%- END %]
180
181 [%- IF is_aging %]
182   <tr>
183     <th align=left>[% label %]</th>
184     <td>[% vc %]</td>
185   </tr>
186 </table>
187 <table border="0">
188   <tr>
189     <td colspan=5><hr size=1 noshade></td>
190   </tr>
191   <tr>
192     <th align=left><input name=reporttype class=radio type=radio value="custom" checked><b>[% 'Reference day' | $T8 %]</b> ([% 'Due Date' | $T8 %][% ', if set' | $T8 %])</b>&nbsp; </th>
193      <td align="right" colspan="4">[% 'Review of Aging list' | $T8 %] <select name="review_of_aging_list">
194         <option></option>
195         <option>0-30</option>
196         <option>30-60</option>
197         <option>60-90</option>
198         <option>90-120</option>
199         <option>&gt; 120</option>
200         </select> [% 'for date' | $T8 %] [% L.date_tag('fordate', today) %]
201     </td>
202   </tr>
203   <tr>
204     <td colspan=5><hr size=3 noshade></td>
205  </tr>
206  <tr>
207     <th align=left><input name=reporttype class=radio type=radio value="free"><b>[% 'Free report period' | $T8 %]</b> ([% 'Invoice Date' | $T8 %])&nbsp; </th>
208     <td align="right" colspan=4>
209       [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
210       [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
211     </td>
212   </tr>
213   <input type=hidden name=type value=statement>
214   <input type=hidden name=format value=html>
215   <input type=hidden name=media value=screen>
216
217   <input type=hidden name=nextsub value='[% nextsub %]'>
218   <input type=hidden name=action value='[% nextsub %]'>
219 [%- END %]
220
221 [%- IF is_payments %]
222   <input type=hidden name=nextsub value=list_payments>
223   <tr>
224     <th align=right nowrap>[% 'Account' | $T8 %]</th>
225     <td colspan=3><select name=account>[% selection %]</select>
226       <input type=hidden name=paymentaccounts value="[% paymentaccounts %]">
227     </td>
228   </tr>
229   <tr>
230     <th align=right>[% 'Reference' | $T8 %]</th>
231     <td colspan=3><input name=reference class="initial_focus"></td>
232   </tr>
233   <tr>
234     <th align=right nowrap>[% 'Source' | $T8 %]</th>
235     <td colspan=3><input name=source></td>
236   </tr>
237   <tr>
238     <th align=right nowrap>[% 'Memo' | $T8 %]</th>
239     <td colspan=3><input name=memo size=30></td>
240   </tr>
241   <tr>
242     <th align=right>[% 'From' | $T8 %]</th>
243     <td>[% L.date_tag('fromdate', fromdate) %]</td>
244     <th align=right>[% 'Bis' | $T8 %]</th>
245     <td>[% L.date_tag('todate') %]</td>
246   </tr>
247   <tr>
248     <td align=right><input type=checkbox style=checkbox name=fx_transaction value=1 checked></td>
249     <th align=left colspan=3>[% 'Include Exchangerate Difference' | $T8 %]</td>
250   </tr>
251
252   <input type=hidden name=db value='[% db %]'>
253   <input type=hidden name=sort value=transdate>
254 [%- END %]
255
256 [%- IF 0 # is_taxreport %]
257   <input type=hidden name=nextsub value=generate_tax_report>
258   <tr>
259     <th align=right>[% 'From' | $T8 %]</th>
260     <td>[% L.date_tag('fromdate', fromdate) %]</td>
261     <th align=right>[% 'Bis' | $T8 %]</th>
262     <td>[% L.date_tag('todate', todate) %]</td>
263   </tr>
264   <tr>
265     <th align=right>[% 'Report for' | $T8 %]</th>
266     <td colspan=3>
267 [% FOREACH row IN taxaccounts %]
268       <input name=accno class=radio type=radio value='[% row.accno %]' [% loop.first ? 'checked' : '' %]>&nbsp;[% row.description %]
269       <input name="[% row.accno %]_description" type=hidden value="[% row.description %]">
270       <input name="[% row.accno %]_rate" type=hidden value="[% row.rate %]">
271 [%- END %]
272       <input type=hidden name=db value='[% db %]'>
273       <input type=hidden name=sort value=transdate>
274     </td>
275   </tr>
276 [%- PROCESS cash_or_accrual %]
277 </table>
278 <table>
279   <tr>
280     <th align=right>[% 'Include in Report' | $T8 %]</th>
281     <td>
282       <table>
283         <tr>
284           <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
285           <td>[% 'ID' | $T8 %]</td>
286           <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
287           <td>[% 'Invoice' | $T8 %]</td>
288           <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
289           <td>[% 'Date' | $T8 %]</td>
290         </tr>
291         <tr>
292           <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
293           <td>
294             [% LxERP.t8('Customer') IF db == 'ar' %]
295             [% LxERP.t8('Vendor')   IF db == 'ap' %]
296          </td>
297           <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
298           <td>[% 'Amount' | $T8 %]</td>
299           <td><input name="l_tax" class=checkbox type=checkbox value=Y checked></td>
300           <td>[% 'Tax' | $T8 %]</td>
301           <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
302           <td>[% 'Total' | $T8 %]</td>
303         </tr>
304         <tr>
305           <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
306           <td>[% 'Subtotal' | $T8 %]</td>
307         </tr>
308       </table>
309     </td>
310   </tr>
311 [%- END %]
312 </table>
313
314 <hr size=3 noshade>
315 <br>
316 <input type=submit class=submit name=action value="[% 'Continue' | $T8 %]">
317
318 </form>