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=accrual, label=LxERP.t8('Accrual')) %]
102 [% L.radio_button_tag('method', value='cash', checked=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>
123 <form method=post action='[% script %]'>
125 <input type=hidden name=title value="[% title %]">
128 [%- IF selectdepartment %]
130 <th align="left" nowrap>[% 'Department' | $T8 %]</th>
131 <td colspan=3><select name=department>[% selectdepartment %]</select></td>
135 [%- IF is_projects %]
136 [% INCLUDE projectnumber %]
137 <input type=hidden name=nextsub value=generate_projects>
139 <th align=right>[% 'From' | $T8 %]</th>
140 <td> [% L.date_tag('fromdate', fromdate, class='initial_focus') %]</td>
141 <th align=right nowrap>[% 'Bis' | $T8 %]</th>
142 <td>[% L.date_tag('todate') %]</td>
147 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
148 <td><input name=l_heading class=checkbox type=checkbox value=Y> [% 'Heading' | $T8 %]
149 <input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]</td>
153 [%- IF is_income_statement %]
154 [%- PROCESS projectnumber %]
155 <input type=hidden name=nextsub value=generate_income_statement>
158 [%- PROCESS customized_report %]
159 [%- PROCESS cash_or_accrual %]
161 <th align=left nowrap>[% 'Include in Report' | $T8 %]</th>
162 <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
168 [%- PROCESS projectnumber %]
169 <input type=hidden name=nextsub value=generate_bwa>
172 [%- PROCESS customized_report %]
173 [%- PROCESS cash_or_accrual %]
175 <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
176 <td><input name=decimalplaces size=3 value="2"></td>
181 [%- IF is_erfolgsrechnung %]
182 <input type=hidden name=nextsub value=generate_erfolgsrechnung>
185 [%- PROCESS customized_report %]
189 [%- IF is_balance_sheet %]
190 <input type=hidden name=nextsub value=generate_balance_sheet>
192 <th align=right>[% 'as at' | $T8 %]</th>
193 <td> [% L.date_tag('asofdate', asofdate, class="initial_focus") %]</td>
194 <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
195 <td><input name=l_ob class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
198 <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
199 <td>[% L.date_tag('compareasofdate', compareasofdate) %]</td>
200 <td><input name=l_cb_compared class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
201 <td><input name=l_ob_compared class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
204 <th align=right>[% 'Decimalplaces' | $T8 %]</th>
205 <td><input name=decimalplaces size=3 value="2"></td>
209 [%- PROCESS cash_or_accrual %]
211 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
212 <td><input name=l_heading class=checkbox type=checkbox value=Y> [% 'Heading' | $T8 %]
213 <input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]
214 <input name=l_accno class=checkbox type=checkbox value=Y> [% 'Account Number' | $T8 %]</td>
218 [%- IF is_trial_balance %]
219 [%- PROCESS customer %]
220 [%- PROCESS projectnumber %]
221 <input type=hidden name=nextsub value=generate_trial_balance>
224 [%- PROCESS customized_report %]
225 [%- PROCESS cash_or_accrual %]
227 <th align=right colspan=4>[% 'All Accounts' | $T8 %]</th>
228 <td><input name=all_accounts type=checkbox value=1></td>
231 <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
232 <td><input name=decimalplaces size=3 value="2"></td>
238 <th align=left>[% label %]</th>
244 <td colspan=5><hr size=1 noshade></td>
247 <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>
248 <td align="right" colspan="4">[% 'Review of Aging list' | $T8 %] <select name="review_of_aging_list">
250 <option>0-30</option>
251 <option>30-60</option>
252 <option>60-90</option>
253 <option>90-120</option>
254 <option>> 120</option>
255 </select> [% 'for date' | $T8 %] [% L.date_tag('fordate', today) %]
259 <td colspan=5><hr size=3 noshade></td>
262 <th align=left><input name=reporttype class=radio type=radio value="free"><b>[% 'Free report period' | $T8 %]</b> ([% 'Invoice Date' | $T8 %]) </th>
263 <td align="right" colspan=4>
264 [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
265 [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
268 <input type=hidden name=type value=statement>
269 <input type=hidden name=format value=html>
270 <input type=hidden name=media value=screen>
272 <input type=hidden name=nextsub value='[% nextsub %]'>
273 <input type=hidden name=action value='[% nextsub %]'>
276 [%- IF is_payments %]
277 <input type=hidden name=nextsub value=list_payments>
279 <th align=right nowrap>[% 'Account' | $T8 %]</th>
280 <td colspan=3><select name=account>[% selection %]</select>
281 <input type=hidden name=paymentaccounts value="[% paymentaccounts %]">
285 <th align=right>[% 'Reference' | $T8 %]</th>
286 <td colspan=3><input name=reference class="initial_focus"></td>
289 <th align=right nowrap>[% 'Source' | $T8 %]</th>
290 <td colspan=3><input name=source></td>
293 <th align=right nowrap>[% 'Memo' | $T8 %]</th>
294 <td colspan=3><input name=memo size=30></td>
297 <th align=right>[% 'From' | $T8 %]</th>
298 <td>[% L.date_tag('fromdate', fromdate) %]</td>
299 <th align=right>[% 'Bis' | $T8 %]</th>
300 <td>[% L.date_tag('todate') %]</td>
303 <td align=right><input type=checkbox style=checkbox name=fx_transaction value=1 checked></td>
304 <th align=left colspan=3>[% 'Include Exchangerate Difference' | $T8 %]</td>
307 <input type=hidden name=db value='[% db %]'>
308 <input type=hidden name=sort value=transdate>
311 [%- IF 0 # is_taxreport %]
312 <input type=hidden name=nextsub value=generate_tax_report>
314 <th align=right>[% 'From' | $T8 %]</th>
315 <td>[% L.date_tag('fromdate', fromdate) %]</td>
316 <th align=right>[% 'Bis' | $T8 %]</th>
317 <td>[% L.date_tag('todate', todate) %]</td>
320 <th align=right>[% 'Report for' | $T8 %]</th>
322 [% FOREACH row IN taxaccounts %]
323 <input name=accno class=radio type=radio value='[% row.accno %]' [% loop.first ? 'checked' : '' %]> [% row.description %]
324 <input name="[% row.accno %]_description" type=hidden value="[% row.description %]">
325 <input name="[% row.accno %]_rate" type=hidden value="[% row.rate %]">
327 <input type=hidden name=db value='[% db %]'>
328 <input type=hidden name=sort value=transdate>
331 [%- PROCESS cash_or_accrual %]
335 <th align=right>[% 'Include in Report' | $T8 %]</th>
339 <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
340 <td>[% 'ID' | $T8 %]</td>
341 <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
342 <td>[% 'Invoice' | $T8 %]</td>
343 <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
344 <td>[% 'Date' | $T8 %]</td>
347 <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
349 [% LxERP.t8('Customer') IF db == 'ar' %]
350 [% LxERP.t8('Vendor') IF db == 'ap' %]
352 <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
353 <td>[% 'Amount' | $T8 %]</td>
354 <td><input name="l_tax" class=checkbox type=checkbox value=Y checked></td>
355 <td>[% 'Tax' | $T8 %]</td>
356 <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
357 <td>[% 'Total' | $T8 %]</td>
360 <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
361 <td>[% 'Subtotal' | $T8 %]</td>
371 <input type=submit class=submit name=action value="[% 'Continue' | $T8 %]">
375 <script type="text/javascript">
376 function format_date(yy, mm, dd) {
377 var format = "[% dateformat %]";
378 format = format.replace("yyyy", "yy");
379 format = format.replace("yy", yy);
380 format = format.replace("mm", mm);
381 format = format.replace("dd", dd);
384 function set_from_to(duetyp, year) {
387 document.getElementById('fromdate').value=format_date(year, '01', '01');
388 document.getElementById('todate').value=format_date(year, '01', '31');
391 document.getElementById('fromdate').value=format_date(year, '02', '01');
392 if(year % 4) document.getElementById('todate').value=format_date(year, '02', '28');
393 else document.getElementById('todate').value=format_date(year, '2', '29');
396 document.getElementById('fromdate').value=format_date(year, '03', '01');
397 document.getElementById('todate').value=format_date(year, '03', '31');
400 document.getElementById('fromdate').value=format_date(year, '04', '01');
401 document.getElementById('todate').value=format_date(year, '04', '30');
404 document.getElementById('fromdate').value=format_date(year, '05', '01');
405 document.getElementById('todate').value=format_date(year, '05', '31');
408 document.getElementById('fromdate').value=format_date(year, '06', '01');
409 document.getElementById('todate').value=format_date(year, '06', '30');
412 document.getElementById('fromdate').value=format_date(year, '07', '01');
413 document.getElementById('todate').value=format_date(year, '07', '31');
416 document.getElementById('fromdate').value=format_date(year, '08', '01');
417 document.getElementById('todate').value=format_date(year, '08', '31');
420 document.getElementById('fromdate').value=format_date(year, '09', '01');
421 document.getElementById('todate').value=format_date(year, '09', '30');
424 document.getElementById('fromdate').value=format_date(year, '10', '01');
425 document.getElementById('todate').value=format_date(year, '10', '31');
428 document.getElementById('fromdate').value=format_date(year, '11', '01');
429 document.getElementById('todate').value=format_date(year, '11', '30');
432 document.getElementById('fromdate').value=format_date(year, '12', '01');
433 document.getElementById('todate').value=format_date(year, '12', '31');
436 document.getElementById('fromdate').value=format_date(year, '01', '01');
437 document.getElementById('todate').value=format_date(year, '12', '31');
440 document.getElementById('fromdate').value=format_date(year, '01', '01');
441 document.getElementById('todate').value=format_date(year, '03', '31');
444 document.getElementById('fromdate').value=format_date(year, '04', '01');
445 document.getElementById('todate').value=format_date(year, '06', '30');
448 document.getElementById('fromdate').value=format_date(year, '07', '01');
449 document.getElementById('todate').value=format_date(year, '09', '31');
452 document.getElementById('fromdate').value=format_date(year, '10', '01');
453 document.getElementById('todate').value=format_date(year, '12', '31');
456 document.getElementById('fromdate').value=format_date(year, '01', '01');
457 document.getElementById('todate').value=format_date(year, '12', '31');