649140a33fdcefa6dae8e9990b89fff200acbb7c
[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   [% 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) %]</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) %]</td>
140     <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
141     <td>[% L.date_tag('compareasofdate', compareasofdate) %]</td>
142   </tr>
143   <tr>
144     <th align=right>[% 'Decimalplaces' | $T8 %]</th>
145     <td><input name=decimalplaces size=3 value="2"></td>
146   </tr>
147 </table>
148 <table>
149 [%- PROCESS cash_or_accrual %]
150   <tr>
151     <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
152     <td><input name=l_heading class=checkbox type=checkbox value=Y>&nbsp;[% 'Heading' | $T8 %]
153     <input name=l_subtotal class=checkbox type=checkbox value=Y>&nbsp;[% 'Subtotal' | $T8 %]
154     <input name=l_accno class=checkbox type=checkbox value=Y>&nbsp;[% 'Account Number' | $T8 %]</td>
155   </tr>
156   <tr>
157     <th></th>
158     <td><input name=l_cb class=checkbox type=checkbox value=Y>&nbsp;[% 'CB Transactions' | $T8 %]
159     <input name=l_ob class=checkbox type=checkbox value=Y>&nbsp;[% 'only OB Transactions' | $T8 %]</td>
160   </tr>
161 [%- END %]
162
163 [%- IF is_trial_balance %]
164 [%- PROCESS projectnumber %]
165   <input type=hidden name=nextsub value=generate_trial_balance>
166 </table>
167 <table>
168 [%- PROCESS customized_report %]
169 [%- PROCESS cash_or_accrual %]
170  <tr>
171    <th align=right colspan=4>[% 'All Accounts' | $T8 %]</th>
172    <td><input name=all_accounts type=checkbox value=1></td>
173  </tr>
174  <tr>
175    <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
176    <td><input name=decimalplaces size=3 value="2"></td>
177  </tr>
178 [%- END %]
179
180 [%- IF is_aging %]
181   <tr>
182     <th align=left>[% label %]</th>
183     <td>[% vc %]</td>
184   </tr>
185 </table>
186 <table border="0">
187   <tr>
188     <td colspan=5><hr size=1 noshade></td>
189   </tr>
190   <tr>
191     <th align=left><input name=reporttype class=radio type=radio value="custom" checked><b>[% 'Reference day' | $T8 %]</b>&nbsp; </th>
192      <td align="right" colspan="4">[% 'Review of Aging list' | $T8 %] <select name="review_of_aging_list">
193         <option></option>
194         <option>0-30</option>
195         <option>30-60</option>
196         <option>60-90</option>
197         <option>90-120</option>
198         <option>&gt; 120</option>
199         </select> [% 'for date' | $T8 %] [% L.date_tag('fordate', today) %]
200     </td>
201   </tr>
202   <tr>
203     <td colspan=5><hr size=3 noshade></td>
204  </tr>
205  <tr>
206     <th align=left><input name=reporttype class=radio type=radio value="free"><b>[% 'Free report period' | $T8 %]</b>&nbsp; </th>
207     <td align="right" colspan=4>
208       [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
209       [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
210     </td>
211   </tr>
212   <input type=hidden name=type value=statement>
213   <input type=hidden name=format value=html>
214   <input type=hidden name=media value=screen>
215
216   <input type=hidden name=nextsub value='[% nextsub %]'>
217   <input type=hidden name=action value='[% nextsub %]'>
218 [%- END %]
219
220 [%- IF is_payments %]
221   <input type=hidden name=nextsub value=list_payments>
222   <tr>
223     <th align=right nowrap>[% 'Account' | $T8 %]</th>
224     <td colspan=3><select name=account>[% selection %]</select>
225       <input type=hidden name=paymentaccounts value="[% paymentaccounts %]">
226     </td>
227   </tr>
228   <tr>
229     <th align=right>[% 'Reference' | $T8 %]</th>
230     <td colspan=3><input name=reference></td>
231   </tr>
232   <tr>
233     <th align=right nowrap>[% 'Source' | $T8 %]</th>
234     <td colspan=3><input name=source></td>
235   </tr>
236   <tr>
237     <th align=right nowrap>[% 'Memo' | $T8 %]</th>
238     <td colspan=3><input name=memo size=30></td>
239   </tr>
240   <tr>
241     <th align=right>[% 'From' | $T8 %]</th>
242     <td>[% L.date_tag('fromdate', fromdate) %]</td>
243     <th align=right>[% 'Bis' | $T8 %]</th>
244     <td>[% L.date_tag('todate') %]</td>
245   </tr>
246   <tr>
247     <td align=right><input type=checkbox style=checkbox name=fx_transaction value=1 checked></td>
248     <th align=left colspan=3>[% 'Include Exchangerate Difference' | $T8 %]</td>
249   </tr>
250
251   <input type=hidden name=db value='[% db %]'>
252   <input type=hidden name=sort value=transdate>
253 [%- END %]
254
255 [%- IF 0 # is_taxreport %]
256   <input type=hidden name=nextsub value=generate_tax_report>
257   <tr>
258     <th align=right>[% 'From' | $T8 %]</th>
259     <td>[% L.date_tag('fromdate', fromdate) %]</td>
260     <th align=right>[% 'Bis' | $T8 %]</th>
261     <td>[% L.date_tag('todate', todate) %]</td>
262   </tr>
263   <tr>
264     <th align=right>[% 'Report for' | $T8 %]</th>
265     <td colspan=3>
266 [% FOREACH row IN taxaccounts %]
267       <input name=accno class=radio type=radio value='[% row.accno %]' [% loop.first ? 'checked' : '' %]>&nbsp;[% row.description %]
268       <input name="[% row.accno %]_description" type=hidden value="[% row.description %]">
269       <input name="[% row.accno %]_rate" type=hidden value="[% row.rate %]">
270 [%- END %]
271       <input type=hidden name=db value='[% db %]'>
272       <input type=hidden name=sort value=transdate>
273     </td>
274   </tr>
275 [%- PROCESS cash_or_accrual %]
276 </table>
277 <table>
278   <tr>
279     <th align=right>[% 'Include in Report' | $T8 %]</th>
280     <td>
281       <table>
282         <tr>
283           <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
284           <td>[% 'ID' | $T8 %]</td>
285           <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
286           <td>[% 'Invoice' | $T8 %]</td>
287           <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
288           <td>[% 'Date' | $T8 %]</td>
289         </tr>
290         <tr>
291           <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
292           <td>
293             [% LxERP.t8('Customer') IF db == 'ar' %]
294             [% LxERP.t8('Vendor')   IF db == 'ap' %]
295          </td>
296           <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
297           <td>[% 'Amount' | $T8 %]</td>
298           <td><input name="l_tax" class=checkbox type=checkbox value=Y checked></td>
299           <td>[% 'Tax' | $T8 %]</td>
300           <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
301           <td>[% 'Total' | $T8 %]</td>
302         </tr>
303         <tr>
304           <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
305           <td>[% 'Subtotal' | $T8 %]</td>
306         </tr>
307       </table>
308     </td>
309   </tr>
310 [%- END %]
311 </table>
312
313 <hr size=3 noshade>
314 <br>
315 <input type=submit class=submit name=action value="[% 'Continue' | $T8 %]">
316
317 </form>