6 [%- BLOCK customized_report %]
8 <th align=left><input name=reporttype class=radio type=radio value="custom" checked>[% 'Customized Report' | $T8 %]</th>
11 <th colspan=1>[% 'Year' | $T8 %]</th>
13 <input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus" oninput='set_from_to(duetyp.value, this.value)'>
17 <td align=right> <b>[% 'Yearly' | $T8 %]</b> </td>
18 <th align=left>[% 'Quarterly' | $T8 %]</th>
19 <th align=left colspan=3>[% 'Monthly' | $T8 %]</th>
22 <td align=right>
23 <input name=duetyp class=radio type=radio value="13" onchange='set_from_to(this.value, year.value)'>
25 <td><input name=duetyp class=radio type=radio value="A" onchange='set_from_to(this.value, year.value)'>
26 1. [% 'Quarter' | $T8 %]
28 <td><input name=duetyp class=radio type=radio value="1" checked onchange='set_from_to(this.value, year.value)'>
29 [% 'January' | $T8 %]
31 <td><input name=duetyp class=radio type=radio value="5" onchange='set_from_to(this.value, year.value)'>
32 [% 'May' | $T8 %]
34 <td><input name=duetyp class=radio type=radio value="9" onchange='set_from_to(this.value, year.value)'>
35 [% 'September' | $T8 %]
39 <td align= right> </td>
40 <td><input name=duetyp class=radio type=radio value="B" onchange='set_from_to(this.value, year.value)'>
41 2. [% 'Quarter' | $T8 %]
43 <td><input name=duetyp class=radio type=radio value="2" onchange='set_from_to(this.value, year.value)'>
44 [% 'February' | $T8 %]
46 <td><input name=duetyp class=radio type=radio value="6" onchange='set_from_to(this.value, year.value)'>
47 [% 'June' | $T8 %]
49 <td><input name=duetyp class=radio type=radio value="10" onchange='set_from_to(this.value, year.value)'>
50 [% 'October' | $T8 %]
55 <td><input name=duetyp class=radio type=radio value="C" onchange='set_from_to(this.value, year.value)'>
56 3. [% 'Quarter' | $T8 %]
58 <td><input name=duetyp class=radio type=radio value="3" onchange='set_from_to(this.value, year.value)'>
59 [% 'March' | $T8 %]
61 <td><input name=duetyp class=radio type=radio value="7" onchange='set_from_to(this.value, year.value)'>
62 [% 'July' | $T8 %]
64 <td><input name=duetyp class=radio type=radio value="11" onchange='set_from_to(this.value, year.value)'>
65 [% 'November' | $T8 %]
70 <td><input name=duetyp class=radio type=radio value="D" onchange='set_from_to(this.value, year.value)'>
71 4. [% 'Quarter' | $T8 %]
73 <td><input name=duetyp class=radio type=radio value="4" onchange='set_from_to(this.value, year.value)'>
74 [% 'April' | $T8 %]
76 <td><input name=duetyp class=radio type=radio value="8" onchange='set_from_to(this.value, year.value)'>
77 [% 'August' | $T8 %]
79 <td><input name=duetyp class=radio type=radio value="12" onchange='set_from_to(this.value, year.value)'>
80 [% 'December' | $T8 %]
84 <td colspan=5><hr size=3 noshade></td>
87 <th align=left><input name=reporttype class=radio type=radio value="free">[% 'Free report period' | $T8 %]</th>
88 <td align=left colspan=4>
89 [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
90 [% 'Bis' | $T8 %] [% L.date_tag('todate', todate) %]
94 <td colspan=5><hr size=3 noshade></td>
97 [%- BLOCK cash_or_accrual %]
99 <th align=left>[% 'Method' | $T8 %]</th>
101 [% L.radio_button_tag('method', value='accrual', checked=(INSTANCE_CONF.get_accounting_method=='accrual'), label=LxERP.t8('Accrual')) %]
102 [% L.radio_button_tag('method', value='cash', checked=(INSTANCE_CONF.get_accounting_method=='cash'), label=LxERP.t8('cash')) %]
106 [%- BLOCK customer %]
108 <th align=right nowrap>[% 'Customer' | $T8 %]</th>
109 <td colspan=3>[% L.customer_vendor_picker('customer_id', '', type='customer') %]</td>
112 [%- BLOCK projectnumber %]
114 <th align=right nowrap>[% 'Project' | $T8 %]</th>
115 <td colspan=3>[% L.select_tag('project_id', ALL_PROJECTS, title_key = 'projectnumber', with_empty = 1) %]</td>
121 <form method=post action='[% script %]'>
123 <input type=hidden name=title value="[% title %]">
126 [%- IF selectdepartment %]
128 <th align="left" nowrap>[% 'Department' | $T8 %]</th>
129 <td colspan=3><select name=department>[% selectdepartment %]</select></td>
133 [%- IF is_projects %]
134 [% INCLUDE projectnumber %]
135 <input type=hidden name=nextsub value=generate_projects>
137 <th align=right>[% 'From' | $T8 %]</th>
138 <td> [% L.date_tag('fromdate', fromdate, class='initial_focus') %]</td>
139 <th align=right nowrap>[% 'Bis' | $T8 %]</th>
140 <td>[% L.date_tag('todate') %]</td>
145 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
146 <td><input name=l_heading class=checkbox type=checkbox value=Y> [% 'Heading' | $T8 %]
147 <input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]</td>
151 [%- IF is_income_statement %]
152 [%- PROCESS projectnumber %]
153 <input type=hidden name=nextsub value=generate_income_statement>
156 [%- PROCESS customized_report %]
157 [%- PROCESS cash_or_accrual %]
159 <th align=left nowrap>[% 'Include in Report' | $T8 %]</th>
160 <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
166 [%- PROCESS projectnumber %]
167 <input type=hidden name=nextsub value=generate_bwa>
170 [%- PROCESS customized_report %]
171 [%- PROCESS cash_or_accrual %]
173 <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
174 <td><input name=decimalplaces size=3 value="2"></td>
179 [%- IF is_erfolgsrechnung %]
180 <input type=hidden name=nextsub value=generate_erfolgsrechnung>
183 [%- PROCESS customized_report %]
187 [%- IF is_balance_sheet %]
188 <input type=hidden name=nextsub value=generate_balance_sheet>
190 <th align=right>[% 'as at' | $T8 %]</th>
191 <td> [% L.date_tag('asofdate', asofdate, class="initial_focus") %]</td>
192 <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
193 <td><input name=l_ob class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
196 <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
197 <td>[% L.date_tag('compareasofdate', compareasofdate) %]</td>
198 <td><input name=l_cb_compared class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
199 <td><input name=l_ob_compared class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
202 <th align=right>[% 'Decimalplaces' | $T8 %]</th>
203 <td><input name=decimalplaces size=3 value="2"></td>
207 [%- PROCESS cash_or_accrual %]
209 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
210 <td><input name=l_heading class=checkbox type=checkbox value=Y> [% 'Heading' | $T8 %]
211 <input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]
212 <input name=l_accno class=checkbox type=checkbox value=Y> [% 'Account Number' | $T8 %]</td>
216 [%- IF is_trial_balance %]
217 [%- PROCESS customer %]
218 [%- PROCESS projectnumber %]
219 <input type=hidden name=nextsub value=generate_trial_balance>
222 [%- PROCESS customized_report %]
223 [%- PROCESS cash_or_accrual %]
225 <th align=right colspan=4>[% 'All Accounts' | $T8 %]</th>
226 <td><input name=all_accounts type=checkbox value=1></td>
229 <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
230 <td><input name=decimalplaces size=3 value="2"></td>
236 <th align=left>[% label %]</th>
242 <td colspan=5><hr size=1 noshade></td>
245 <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> </th>
246 <td align="right" colspan="4">[% 'Review of Aging list' | $T8 %] <select name="review_of_aging_list">
248 <option>0-30</option>
249 <option>30-60</option>
250 <option>60-90</option>
251 <option>90-120</option>
252 <option>> 120</option>
253 </select> [% 'for date' | $T8 %] [% L.date_tag('fordate', today) %]
257 <td colspan=5><hr size=3 noshade></td>
260 <th align=left><input name=reporttype class=radio type=radio value="free"><b>[% 'Free report period' | $T8 %]</b> ([% 'Invoice Date' | $T8 %]) </th>
261 <td align="right" colspan=4>
262 [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
263 [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
266 <input type=hidden name=type value=statement>
267 <input type=hidden name=format value=html>
268 <input type=hidden name=media value=screen>
270 <input type=hidden name=nextsub value='[% nextsub %]'>
271 <input type=hidden name=action value='[% nextsub %]'>
274 [%- IF is_payments %]
275 <input type=hidden name=nextsub value=list_payments>
277 <th align=right nowrap>[% 'Account' | $T8 %]</th>
278 <td colspan=3><select name=account>[% selection %]</select>
279 <input type=hidden name=paymentaccounts value="[% paymentaccounts %]">
283 <th align=right>[% 'Reference' | $T8 %]</th>
284 <td colspan=3><input name=reference class="initial_focus"></td>
287 <th align=right nowrap>[% 'Source' | $T8 %]</th>
288 <td colspan=3><input name=source></td>
291 <th align=right nowrap>[% 'Memo' | $T8 %]</th>
292 <td colspan=3><input name=memo size=30></td>
295 <th align=right>[% 'From' | $T8 %]</th>
296 <td>[% L.date_tag('fromdate', fromdate) %]</td>
297 <th align=right>[% 'Bis' | $T8 %]</th>
298 <td>[% L.date_tag('todate') %]</td>
301 <td align=right><input type=checkbox style=checkbox name=fx_transaction value=1 checked></td>
302 <th align=left colspan=3>[% 'Include Exchangerate Difference' | $T8 %]</td>
305 <input type=hidden name=db value='[% db %]'>
306 <input type=hidden name=sort value=transdate>
309 [%- IF 0 # is_taxreport %]
310 <input type=hidden name=nextsub value=generate_tax_report>
312 <th align=right>[% 'From' | $T8 %]</th>
313 <td>[% L.date_tag('fromdate', fromdate) %]</td>
314 <th align=right>[% 'Bis' | $T8 %]</th>
315 <td>[% L.date_tag('todate', todate) %]</td>
318 <th align=right>[% 'Report for' | $T8 %]</th>
320 [% FOREACH row IN taxaccounts %]
321 <input name=accno class=radio type=radio value='[% row.accno %]' [% loop.first ? 'checked' : '' %]> [% row.description %]
322 <input name="[% row.accno %]_description" type=hidden value="[% row.description %]">
323 <input name="[% row.accno %]_rate" type=hidden value="[% row.rate %]">
325 <input type=hidden name=db value='[% db %]'>
326 <input type=hidden name=sort value=transdate>
329 [%- PROCESS cash_or_accrual %]
333 <th align=right>[% 'Include in Report' | $T8 %]</th>
337 <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
338 <td>[% 'ID' | $T8 %]</td>
339 <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
340 <td>[% 'Invoice' | $T8 %]</td>
341 <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
342 <td>[% 'Date' | $T8 %]</td>
345 <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
347 [% LxERP.t8('Customer') IF db == 'ar' %]
348 [% LxERP.t8('Vendor') IF db == 'ap' %]
350 <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
351 <td>[% 'Amount' | $T8 %]</td>
352 <td><input name="l_tax" class=checkbox type=checkbox value=Y checked></td>
353 <td>[% 'Tax' | $T8 %]</td>
354 <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
355 <td>[% 'Total' | $T8 %]</td>
358 <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
359 <td>[% 'Subtotal' | $T8 %]</td>
369 <input type=submit class=submit name=action value="[% 'Continue' | $T8 %]">
373 <script type="text/javascript">
374 function set_from_to(duetyp, year) {
377 2: [ 2, 1, 2, new Date(year, 1, 29).getMonth() == 1 ? 29 : 28 ],
385 10: [ 10, 1, 10, 31 ],
386 11: [ 11, 1, 11, 30 ],
387 12: [ 12, 1, 12, 31 ],
388 13: [ 1, 1, 12, 31 ],
389 'A': [ 1, 1, 3, 31 ],
390 'B': [ 4, 1, 6, 30 ],
391 'C': [ 7, 1, 9, 30 ],
392 'D': [ 10, 1, 12, 31 ]
395 $('#fromdate').val(kivi.format_date(new Date(year, date[0]-1, date[1])));
396 $('#todate').val(kivi.format_date(new Date(year, date[2]-1, date[3])));