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