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