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