7 [%- BLOCK customized_report %]
9 <th align=left><input name=reporttype class=radio type=radio value="custom" checked>[% 'Customized Report' | $T8 %]</th>
12 <th colspan=1>[% 'Year' | $T8 %]</th>
14 <input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus" oninput='set_from_to(duetyp.value, this.value)'>
18 <td align=right> <b>[% 'Yearly' | $T8 %]</b> </td>
19 <th align=left>[% 'Quarterly' | $T8 %]</th>
20 <th align=left colspan=3>[% 'Monthly' | $T8 %]</th>
23 <td align=right>
24 <input name=duetyp class=radio type=radio value="13" checked onchange='set_from_to(this.value, year.value)'>
26 <td><input name=duetyp class=radio type=radio value="A" onchange='set_from_to(this.value, year.value)'>
27 1. [% 'Quarter' | $T8 %]
29 <td><input name=duetyp class=radio type=radio value="1" onchange='set_from_to(this.value, year.value)'>
30 [% 'January' | $T8 %]
32 <td><input name=duetyp class=radio type=radio value="5" onchange='set_from_to(this.value, year.value)'>
33 [% 'May' | $T8 %]
35 <td><input name=duetyp class=radio type=radio value="9" onchange='set_from_to(this.value, year.value)'>
36 [% 'September' | $T8 %]
40 <td align= right> </td>
41 <td><input name=duetyp class=radio type=radio value="B" onchange='set_from_to(this.value, year.value)'>
42 2. [% 'Quarter' | $T8 %]
44 <td><input name=duetyp class=radio type=radio value="2" onchange='set_from_to(this.value, year.value)'>
45 [% 'February' | $T8 %]
47 <td><input name=duetyp class=radio type=radio value="6" onchange='set_from_to(this.value, year.value)'>
48 [% 'June' | $T8 %]
50 <td><input name=duetyp class=radio type=radio value="10" onchange='set_from_to(this.value, year.value)'>
51 [% 'October' | $T8 %]
56 <td><input name=duetyp class=radio type=radio value="C" onchange='set_from_to(this.value, year.value)'>
57 3. [% 'Quarter' | $T8 %]
59 <td><input name=duetyp class=radio type=radio value="3" onchange='set_from_to(this.value, year.value)'>
60 [% 'March' | $T8 %]
62 <td><input name=duetyp class=radio type=radio value="7" onchange='set_from_to(this.value, year.value)'>
63 [% 'July' | $T8 %]
65 <td><input name=duetyp class=radio type=radio value="11" onchange='set_from_to(this.value, year.value)'>
66 [% 'November' | $T8 %]
71 <td><input name=duetyp class=radio type=radio value="D" onchange='set_from_to(this.value, year.value)'>
72 4. [% 'Quarter' | $T8 %]
74 <td><input name=duetyp class=radio type=radio value="4" onchange='set_from_to(this.value, year.value)'>
75 [% 'April' | $T8 %]
77 <td><input name=duetyp class=radio type=radio value="8" onchange='set_from_to(this.value, year.value)'>
78 [% 'August' | $T8 %]
80 <td><input name=duetyp class=radio type=radio value="12" onchange='set_from_to(this.value, year.value)'>
81 [% 'December' | $T8 %]
85 <td colspan=5><hr size=3 noshade></td>
88 <th align=left><input name=reporttype class=radio type=radio value="free">[% 'Free report period' | $T8 %]</th>
89 <td align=left colspan=4>
90 [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
91 [% 'Bis' | $T8 %] [% L.date_tag('todate', todate) %]
95 <td colspan=5><hr size=3 noshade></td>
98 [%- BLOCK cash_or_accrual %]
100 <th align=left>[% 'Method' | $T8 %]</th>
102 [% L.radio_button_tag('method', value='accrual', checked=(INSTANCE_CONF.get_accounting_method=='accrual'), label=LxERP.t8('Accrual')) %]
103 [% L.radio_button_tag('method', value='cash', checked=(INSTANCE_CONF.get_accounting_method=='cash'), label=LxERP.t8('cash')) %]
107 [%- BLOCK customer %]
109 <th align=right nowrap>[% 'Customer' | $T8 %]</th>
110 <td colspan=3>[% P.customer_vendor.picker('customer_id', '', type='customer') %]</td>
113 [%- BLOCK projectnumber %]
115 <th align=right nowrap>[% 'Project' | $T8 %]</th>
116 <td colspan=3>[% P.project.picker('project_id', '') %]</td>
122 <form method='post' action='[% script %]' id='form'>
124 <input type=hidden name=title value="[% title %]">
127 [%- IF selectdepartment %]
129 <th align="left" nowrap>[% 'Department' | $T8 %]</th>
130 <td colspan=3><select name=department>[% selectdepartment %]</select></td>
134 [%- IF is_projects %]
135 [% INCLUDE projectnumber %]
136 <input type=hidden name=nextsub value=generate_projects>
138 <th align=right>[% 'From' | $T8 %]</th>
139 <td> [% L.date_tag('fromdate', fromdate, class='initial_focus') %]</td>
140 <th align=right nowrap>[% 'Bis' | $T8 %]</th>
141 <td>[% L.date_tag('todate') %]</td>
146 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
147 <td><input name=l_heading class=checkbox type=checkbox value=Y> [% 'Heading' | $T8 %]
148 <input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]</td>
152 [%- IF is_income_statement %]
153 [%- PROCESS projectnumber %]
154 <input type=hidden name=nextsub value=generate_income_statement>
157 [%- PROCESS customized_report %]
158 [%- PROCESS cash_or_accrual %]
160 <th align=left nowrap>[% 'Include in Report' | $T8 %]</th>
161 <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
167 [%- PROCESS projectnumber %]
168 <input type=hidden name=nextsub value=generate_bwa>
171 [%- PROCESS customized_report %]
172 [%- PROCESS cash_or_accrual %]
174 <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
175 <td><input name=decimalplaces size=3 value="2"></td>
180 [%- IF is_erfolgsrechnung %]
181 <input type=hidden name=nextsub value=generate_erfolgsrechnung>
184 [%- PROCESS customized_report %]
188 [%- IF is_balance_sheet %]
189 <input type=hidden name=nextsub value=generate_balance_sheet>
191 <th align=right>[% 'as at' | $T8 %]</th>
192 <td> [% L.date_tag('asofdate', asofdate, class="initial_focus") %]</td>
193 <td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
194 <td><input name=l_ob class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
197 <th align=right nowrap>[% 'Compare to' | $T8 %]</th>
198 <td>[% L.date_tag('compareasofdate', compareasofdate) %]</td>
199 <td><input name=l_cb_compared class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
200 <td><input name=l_ob_compared class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
203 <th align=right>[% 'Decimalplaces' | $T8 %]</th>
204 <td><input name=decimalplaces size=3 value="2"></td>
208 [%- PROCESS cash_or_accrual %]
210 <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
211 <td><input name=l_heading class=checkbox type=checkbox value=Y> [% 'Heading' | $T8 %]
212 <input name=l_subtotal class=checkbox type=checkbox value=Y> [% 'Subtotal' | $T8 %]
213 <input name=l_accno class=checkbox type=checkbox value=Y> [% 'Account Number' | $T8 %]</td>
217 [%- IF is_trial_balance %]
218 [%- PROCESS customer %]
219 [%- PROCESS projectnumber %]
220 <input type=hidden name=nextsub value=generate_trial_balance>
223 [%- PROCESS customized_report %]
224 [%- PROCESS cash_or_accrual %]
226 <th align=right colspan=4>[% 'All Accounts' | $T8 %]</th>
227 <td><input name=all_accounts type=checkbox value=1></td>
230 <th align=right colspan=4>[% 'Decimalplaces' | $T8 %]</th>
231 <td><input name=decimalplaces size=3 value="2"></td>
237 <th align=left>[% label %]</th>
243 <td colspan=5><hr size=1 noshade></td>
246 <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>
247 <td align="right" colspan="4">[% 'Review of Aging list' | $T8 %] <select name="review_of_aging_list">
249 <option>0-30</option>
250 <option>30-60</option>
251 <option>60-90</option>
252 <option>90-120</option>
253 <option>> 120</option>
254 </select> [% 'for date' | $T8 %] [% L.date_tag('fordate', today) %]
258 <td colspan=5><hr size=3 noshade></td>
261 <th align=left><input name=reporttype class=radio type=radio value="free"><b>[% 'Free report period' | $T8 %]</b> ([% 'Invoice Date' | $T8 %]) </th>
262 <td align="right" colspan=4>
263 [% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %]
264 [% 'Bis' | $T8 %] [% L.date_tag('todate') %]
267 <input type=hidden name=type value=statement>
268 [% L.hidden_tag("format", format) %]
269 <input type=hidden name=media value=screen>
271 <input type=hidden name=nextsub value='[% nextsub %]'>
272 <input type=hidden name=action value='[% nextsub %]'>
275 [%- IF is_payments %]
276 <input type=hidden name=nextsub value=list_payments>
278 <th align=right nowrap>[% 'Account' | $T8 %]</th>
279 <td colspan=3><select name=account>[% selection %]</select>
280 <input type=hidden name=paymentaccounts value="[% paymentaccounts %]">
284 <th align=right>[% 'Reference' | $T8 %]</th>
285 <td colspan=3><input name=reference class="initial_focus"></td>
288 <th align=right nowrap>[% 'Source' | $T8 %]</th>
289 <td colspan=3><input name=source></td>
292 <th align=right nowrap>[% 'Memo' | $T8 %]</th>
293 <td colspan=3><input name=memo size=30></td>
296 <th align=right>[% 'From' | $T8 %]</th>
297 <td>[% L.date_tag('fromdate', fromdate) %]</td>
298 <th align=right>[% 'Bis' | $T8 %]</th>
299 <td>[% L.date_tag('todate') %]</td>
302 <td align=right><input type=checkbox style=checkbox name=fx_transaction value=1 checked></td>
303 <th align=left colspan=3>[% 'Include Exchangerate Difference' | $T8 %]</td>
306 <input type=hidden name=db value='[% db %]'>
307 <input type=hidden name=sort value=transdate>
310 [%- IF 0 # is_taxreport %]
311 <input type=hidden name=nextsub value=generate_tax_report>
313 <th align=right>[% 'From' | $T8 %]</th>
314 <td>[% L.date_tag('fromdate', fromdate) %]</td>
315 <th align=right>[% 'Bis' | $T8 %]</th>
316 <td>[% L.date_tag('todate', todate) %]</td>
319 <th align=right>[% 'Report for' | $T8 %]</th>
321 [% FOREACH row IN taxaccounts %]
322 <input name=accno class=radio type=radio value='[% row.accno %]' [% loop.first ? 'checked' : '' %]> [% row.description %]
323 <input name="[% row.accno %]_description" type=hidden value="[% row.description %]">
324 <input name="[% row.accno %]_rate" type=hidden value="[% row.rate %]">
326 <input type=hidden name=db value='[% db %]'>
327 <input type=hidden name=sort value=transdate>
330 [%- PROCESS cash_or_accrual %]
334 <th align=right>[% 'Include in Report' | $T8 %]</th>
338 <td><input name="l_id" class=checkbox type=checkbox value=Y></td>
339 <td>[% 'ID' | $T8 %]</td>
340 <td><input name="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
341 <td>[% 'Invoice' | $T8 %]</td>
342 <td><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
343 <td>[% 'Date' | $T8 %]</td>
346 <td><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
348 [% LxERP.t8('Customer') IF db == 'ar' %]
349 [% LxERP.t8('Vendor') IF db == 'ap' %]
351 <td><input name="l_netamount" class=checkbox type=checkbox value=Y checked></td>
352 <td>[% 'Amount' | $T8 %]</td>
353 <td><input name="l_tax" class=checkbox type=checkbox value=Y checked></td>
354 <td>[% 'Tax' | $T8 %]</td>
355 <td><input name="l_amount" class=checkbox type=checkbox value=Y></td>
356 <td>[% 'Total' | $T8 %]</td>
359 <td><input name="l_subtotal" class=checkbox type=checkbox value=Y></td>
360 <td>[% 'Subtotal' | $T8 %]</td>
369 <script type="text/javascript">
370 function set_from_to(duetyp, year) {
373 2: [ 2, 1, 2, new Date(year, 1, 29).getMonth() == 1 ? 29 : 28 ],
381 10: [ 10, 1, 10, 31 ],
382 11: [ 11, 1, 11, 30 ],
383 12: [ 12, 1, 12, 31 ],
384 13: [ 1, 1, 12, 31 ],
385 'A': [ 1, 1, 3, 31 ],
386 'B': [ 4, 1, 6, 30 ],
387 'C': [ 7, 1, 9, 30 ],
388 'D': [ 10, 1, 12, 31 ]
391 $('#fromdate').val(kivi.format_date(new Date(year, date[0]-1, date[1])));
392 $('#todate').val(kivi.format_date(new Date(year, date[2]-1, date[3])));