Merge branch 'master' of vc.linet-services.de:public/lx-office-erp
[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 %]"></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   <tr>
93     <th align=right nowrap>[% 'Project' | $T8 %]</th>
94     <td colspan=5><input name=projectnumber size=25</td>
95   </tr>
96   <input type=hidden name=nextsub value=generate_projects>
97   <tr>
98     <th align=right>[% 'as at' | $T8 %]</th>
99     <td> [% L.date_tag('fromdate', fromdate) %]</td>
100     <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
101     <td>[% L.date_tag('todate') %]</td>
102   </tr>
103 </table>
104 <table>
105   <tr>
106     <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
107     <td><input name=l_heading class=checkbox type=checkbox value=Y>&nbsp;[% 'Heading' | $T8 %]
108     <input name=l_subtotal class=checkbox type=checkbox value=Y>&nbsp;[% 'Subtotal' | $T8 %]</td>
109   </tr>
110 [%- END %]
111
112 [%- IF is_income_statement %]
113 [%- PROCESS projectnumber %]
114   <input type=hidden name=nextsub value=generate_income_statement>
115 </table>
116 <table>
117 [%- PROCESS customized_report %]
118 [%- PROCESS cash_or_accrual %]
119   <tr>
120     <th align=left nowrap>[% 'Include in Report' | $T8 %]</th>
121     <td><input name=l_cb class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]</td>
122   </tr>
123 [%- END %]
124
125 [%- IF is_bwa %]
126 [%- PROCESS projectnumber %]
127   <input type=hidden name=nextsub value=generate_bwa>
128 </table>
129 <table>
130 [%- PROCESS customized_report %]
131 [%- PROCESS cash_or_accrual %]
132   <tr>
133   <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
134     <td><input name=decimalplaces size=3 value="2"></td>
135   </tr>
136 [%- END %]
137
138 [%- IF is_balance_sheet %]
139   <input type=hidden name=nextsub value=generate_balance_sheet>
140   <tr>
141     <th align=right>[% 'as at' | $T8 %]</th>
142     <td> [% L.date_tag('asofdate', asofdate) %]</td>
143     <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
144     <td>[% L.date_tag('compareasofdate', compareasofdate) %]</td>
145   </tr>
146   <tr>
147     <th align=right>[% 'Decimalplaces' | $T8 %]</th>
148     <td><input name=decimalplaces size=3 value="2"></td>
149   </tr>
150 </table>
151 <table>
152 [%- PROCESS cash_or_accrual %]
153   <tr>
154     <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
155     <td><input name=l_heading class=checkbox type=checkbox value=Y>&nbsp;[% 'Heading' | $T8 %]
156     <input name=l_subtotal class=checkbox type=checkbox value=Y>&nbsp;[% 'Subtotal' | $T8 %]
157     <input name=l_accno class=checkbox type=checkbox value=Y>&nbsp;[% 'Account Number' | $T8 %]</td>
158   </tr>
159   <tr>
160     <th></th>
161     <td><input name=l_cb class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]
162     <input name=l_ob class=checkbox type=checkbox value=Y>&nbsp;[% 'only OB Transactions' | $T8 %]</td>
163   </tr>
164 [%- END %]
165
166 [%- IF is_trial_balance %]
167 [%- PROCESS projectnumber %]
168   <input type=hidden name=nextsub value=generate_trial_balance>
169 </table>
170 <table>
171 [%- PROCESS customized_report %]
172 [%- PROCESS cash_or_accrual %]
173  <tr>
174    <th align=right colspan=4>[% 'All Accounts' | $T8 %]</th>
175    <td><input name=all_accounts type=checkbox value=1></td>
176  </tr>
177  <tr>
178    <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
179    <td><input name=decimalplaces size=3 value="2"></td>
180  </tr>
181 [%- END %]
182
183 [%- IF is_aging %]
184   <tr>
185     <th align=left>[% label %]</th>
186     <td>[% vc %]</td>
187   </tr>
188 </table>
189 <table border="0">
190   <tr>
191     <td colspan=5><hr size=1 noshade></td>
192   </tr>
193   <tr>
194     <th align=left><input name=reporttype class=radio type=radio value="custom" checked><b>[% 'Reference day' | $T8 %]</b>&nbsp; </th>
195      <td align="right" colspan="4">[% 'Review of Aging list' | $T8 %] <select name="review_of_aging_list">
196         <option></option>
197         <option>0-30</option>
198         <option>30-60</option>
199         <option>60-90</option>
200         <option>90-120</option>
201         <option>&gt; 120</option>
202         </select> [% 'for date' | $T8 %] [% L.date_tag('fordate', today) %]
203     </td>
204   </tr>
205   <tr>
206     <td colspan=5><hr size=3 noshade></td>
207  </tr>
208  <tr>
209     <th align=left><input name=reporttype class=radio type=radio value="free"><b>[% 'Free report period' | $T8 %]</b>&nbsp; </th>
210     <td align="right" colspan=4>
211       [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
212       [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
213     </td>
214   </tr>
215   <input type=hidden name=type value=statement>
216   <input type=hidden name=format value=html>
217   <input type=hidden name=media value=screen>
218
219   <input type=hidden name=nextsub value='[% nextsub %]'>
220   <input type=hidden name=action value='[% nextsub %]'>
221 [%- END %]
222
223 [%- IF is_payments %]
224   <input type=hidden name=nextsub value=list_payments>
225   <tr>
226     <th align=right nowrap>[% 'Account' | $T8 %]</th>
227     <td colspan=3><select name=account>[% selection %]</select>
228       <input type=hidden name=paymentaccounts value="[% paymentaccounts %]">
229     </td>
230   </tr>
231   <tr>
232     <th align=right>[% 'Reference' | $T8 %]</th>
233     <td colspan=3><input name=reference></td>
234   </tr>
235   <tr>
236     <th align=right nowrap>[% 'Source' | $T8 %]</th>
237     <td colspan=3><input name=source></td>
238   </tr>
239   <tr>
240     <th align=right nowrap>[% 'Memo' | $T8 %]</th>
241     <td colspan=3><input name=memo size=30></td>
242   </tr>
243   <tr>
244     <th align=right>[% 'From' | $T8 %]</th>
245     <td>[% L.date_tag('fromdate', fromdate) %]</td>
246     <th align=right>[% 'Bis' | $T8 %]</th>
247     <td>[% L.date_tag('todate') %]</td>
248   </tr>
249   <tr>
250     <td align=right><input type=checkbox style=checkbox name=fx_transaction value=1 checked></td>
251     <th align=left colspan=3>[% 'Include Exchangerate Difference' | $T8 %]</td>
252   </tr>
253
254   <input type=hidden name=db value='[% db %]'>
255   <input type=hidden name=sort value=transdate>
256 [%- END %]
257
258 [%- IF 0 # is_taxreport %]
259   <input type=hidden name=nextsub value=generate_tax_report>
260   <tr>
261     <th align=right>[% 'From' | $T8 %]</th>
262     <td>[% L.date_tag('fromdate', fromdate) %]</td>
263     <th align=right>[% 'Bis' | $T8 %]</th>
264     <td>[% L.date_tag('todate', todate) %]</td>
265   </tr>
266   <tr>
267     <th align=right>[% 'Report for' | $T8 %]</th>
268     <td colspan=3>
269 [% FOREACH row IN taxaccounts %]
270       <input name=accno class=radio type=radio value='[% row.accno %]' [% loop.first ? 'checked' : '' %]>&nbsp;[% row.description %]
271       <input name="[% row.accno %]_description" type=hidden value="[% row.description %]">
272       <input name="[% row.accno %]_rate" type=hidden value="[% row.rate %]">
273 [%- END %]
274       <input type=hidden name=db value='[% db %]'>
275       <input type=hidden name=sort value=transdate>
276     </td>
277   </tr>
278 [%- PROCESS cash_or_accrual %]
279 </table>
280 <table>
281   <tr>
282     <th align=right>[% 'Include in Report' | $T8 %]</th>
283     <td>
284       <table>
285         <tr>
286           <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
287           <td>[% 'ID' | $T8 %]</td>
288           <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
289           <td>[% 'Invoice' | $T8 %]</td>
290           <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
291           <td>[% 'Date' | $T8 %]</td>
292         </tr>
293         <tr>
294           <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
295           <td>
296             [% LxERP.t8('Customer') IF db == 'ar' %]
297             [% LxERP.t8('Vendor')   IF db == 'ap' %]
298          </td>
299           <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
300           <td>[% 'Amount' | $T8 %]</td>
301           <td><input name="l_tax" class=checkbox type=checkbox value=Y checked></td>
302           <td>[% 'Tax' | $T8 %]</td>
303           <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
304           <td>[% 'Total' | $T8 %]</td>
305         </tr>
306         <tr>
307           <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
308           <td>[% 'Subtotal' | $T8 %]</td>
309         </tr>
310       </table>
311     </td>
312   </tr>
313 [%- END %]
314
315 [%- IF 0 # is_nontaxable %]
316   <input type=hidden name=nextsub value=generate_tax_report>
317
318   <input type=hidden name=db value=[% db %]>
319   <input type=hidden name=sort value=transdate>
320   <input type=hidden name=report value='[% report %]'>
321
322   <tr>
323     <th align=right>[% 'From' | $T8 %]</th>
324     <td>[% L.date_tag('fromdate', fromdate) %]</td>
325     <th align=right>[% 'Bis' | $T8 %]</th>
326     <td>[% L.date_tag('todate', todate) %]</td>
327   </tr>
328 [%- PROCESS cash_or_accrual %]
329   <tr>
330     <th align=right>[% 'Include in Report' | $T8 %]</th>
331     <td colspan=3>
332       <table>
333         <tr>
334           <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
335           <td>[% 'ID' | $T8 %]</td>
336           <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
337           <td>[% 'Invoice' | $T8 %]</td>
338           <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
339           <td>[% 'Date' | $T8 %]</td>
340         </tr>
341         <tr>
342           <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
343           <td>
344             [% LxERP.t8('Customer') IF db == 'ar' %]
345             [% LxERP.t8('Vendor')   IF db == 'ap' %]
346        </td>
347           <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
348           <td>[% 'Amount' | $T8 %]</td>
349           <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
350           <td>[% 'Total' | $T8 %]</td>
351         </tr>
352         <tr>
353           <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
354           <td>[% 'Subtotal' | $T8 %]</td>
355         </tr>
356       </table>
357     </td>
358   </tr>
359 [%- END %]
360 </table>
361
362 <hr size=3 noshade>
363 <br>
364 <input type=submit class=submit name=action value="[% 'Continue' | $T8 %]">
365
366 </form>
367