Revision e3f82371
Von Rolf Fluehmann vor mehr als 8 Jahren hinzugefügt
templates/webpages/rp/report.html | ||
---|---|---|
9 | 9 |
</tr> |
10 | 10 |
<tr> |
11 | 11 |
<th colspan=1>[% 'Year' | $T8 %]</th> |
12 |
<td><input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus"></td> |
|
12 |
<td> |
|
13 |
<input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus" oninput='set_from_to(duetyp.value, this.value)'> |
|
14 |
</td> |
|
13 | 15 |
</tr> |
14 | 16 |
<tr> |
15 | 17 |
<td align=right> <b>[% 'Yearly' | $T8 %]</b> </td> |
... | ... | |
17 | 19 |
<th align=left colspan=3>[% 'Monthly' | $T8 %]</th> |
18 | 20 |
</tr> |
19 | 21 |
<tr> |
20 |
<td align=right> <input name=duetyp class=radio type=radio value="13"></td> |
|
21 |
<td><input name=duetyp class=radio type=radio value="A"> 1. [% 'Quarter' | $T8 %]</td> |
|
22 |
<td><input name=duetyp class=radio type=radio value="1" checked> [% 'January' | $T8 %]</td> |
|
23 |
<td><input name=duetyp class=radio type=radio value="5"> [% 'May' | $T8 %]</td> |
|
24 |
<td><input name=duetyp class=radio type=radio value="9"> [% 'September' | $T8 %]</td> |
|
22 |
<td align=right> |
|
23 |
<input name=duetyp class=radio type=radio value="13" onchange='set_from_to(this.value, year.value)'> |
|
24 |
</td> |
|
25 |
<td><input name=duetyp class=radio type=radio value="A" onchange='set_from_to(this.value, year.value)'> |
|
26 |
1. [% 'Quarter' | $T8 %] |
|
27 |
</td> |
|
28 |
<td><input name=duetyp class=radio type=radio value="1" checked onchange='set_from_to(this.value, year.value)'> |
|
29 |
[% 'January' | $T8 %] |
|
30 |
</td> |
|
31 |
<td><input name=duetyp class=radio type=radio value="5" onchange='set_from_to(this.value, year.value)'> |
|
32 |
[% 'May' | $T8 %] |
|
33 |
</td> |
|
34 |
<td><input name=duetyp class=radio type=radio value="9" onchange='set_from_to(this.value, year.value)'> |
|
35 |
[% 'September' | $T8 %] |
|
36 |
</td> |
|
25 | 37 |
</tr> |
26 | 38 |
<tr> |
27 | 39 |
<td align= right> </td> |
28 |
<td><input name=duetyp class=radio type=radio value="B"> 2. [% 'Quarter' | $T8 %]</td> |
|
29 |
<td><input name=duetyp class=radio type=radio value="2"> [% 'February' | $T8 %]</td> |
|
30 |
<td><input name=duetyp class=radio type=radio value="6"> [% 'June' | $T8 %]</td> |
|
31 |
<td><input name=duetyp class=radio type=radio value="10"> [% 'October' | $T8 %]</td> |
|
40 |
<td><input name=duetyp class=radio type=radio value="B" onchange='set_from_to(this.value, year.value)'> |
|
41 |
2. [% 'Quarter' | $T8 %] |
|
42 |
</td> |
|
43 |
<td><input name=duetyp class=radio type=radio value="2" onchange='set_from_to(this.value, year.value)'> |
|
44 |
[% 'February' | $T8 %] |
|
45 |
</td> |
|
46 |
<td><input name=duetyp class=radio type=radio value="6" onchange='set_from_to(this.value, year.value)'> |
|
47 |
[% 'June' | $T8 %] |
|
48 |
</td> |
|
49 |
<td><input name=duetyp class=radio type=radio value="10" onchange='set_from_to(this.value, year.value)'> |
|
50 |
[% 'October' | $T8 %] |
|
51 |
</td> |
|
32 | 52 |
</tr> |
33 | 53 |
<tr> |
34 | 54 |
<td> </td> |
35 |
<td><input name=duetyp class=radio type=radio value="C"> 3. [% 'Quarter' | $T8 %]</td> |
|
36 |
<td><input name=duetyp class=radio type=radio value="3"> [% 'March' | $T8 %]</td> |
|
37 |
<td><input name=duetyp class=radio type=radio value="7"> [% 'July' | $T8 %]</td> |
|
38 |
<td><input name=duetyp class=radio type=radio value="11"> [% 'November' | $T8 %]</td> |
|
55 |
<td><input name=duetyp class=radio type=radio value="C" onchange='set_from_to(this.value, year.value)'> |
|
56 |
3. [% 'Quarter' | $T8 %] |
|
57 |
</td> |
|
58 |
<td><input name=duetyp class=radio type=radio value="3" onchange='set_from_to(this.value, year.value)'> |
|
59 |
[% 'March' | $T8 %] |
|
60 |
</td> |
|
61 |
<td><input name=duetyp class=radio type=radio value="7" onchange='set_from_to(this.value, year.value)'> |
|
62 |
[% 'July' | $T8 %] |
|
63 |
</td> |
|
64 |
<td><input name=duetyp class=radio type=radio value="11" onchange='set_from_to(this.value, year.value)'> |
|
65 |
[% 'November' | $T8 %] |
|
66 |
</td> |
|
39 | 67 |
</tr> |
40 | 68 |
<tr> |
41 | 69 |
<td> </td> |
42 |
<td><input name=duetyp class=radio type=radio value="D"> 4. [% 'Quarter' | $T8 %]</td> |
|
43 |
<td><input name=duetyp class=radio type=radio value="4"> [% 'April' | $T8 %]</td> |
|
44 |
<td><input name=duetyp class=radio type=radio value="8"> [% 'August' | $T8 %]</td> |
|
45 |
<td><input name=duetyp class=radio type=radio value="12"> [% 'December' | $T8 %]</td> |
|
70 |
<td><input name=duetyp class=radio type=radio value="D" onchange='set_from_to(this.value, year.value)'> |
|
71 |
4. [% 'Quarter' | $T8 %] |
|
72 |
</td> |
|
73 |
<td><input name=duetyp class=radio type=radio value="4" onchange='set_from_to(this.value, year.value)'> |
|
74 |
[% 'April' | $T8 %] |
|
75 |
</td> |
|
76 |
<td><input name=duetyp class=radio type=radio value="8" onchange='set_from_to(this.value, year.value)'> |
|
77 |
[% 'August' | $T8 %] |
|
78 |
</td> |
|
79 |
<td><input name=duetyp class=radio type=radio value="12" onchange='set_from_to(this.value, year.value)'> |
|
80 |
[% 'December' | $T8 %] |
|
81 |
</td> |
|
46 | 82 |
</tr> |
47 | 83 |
<tr> |
48 | 84 |
<td colspan=5><hr size=3 noshade></td> |
... | ... | |
51 | 87 |
<th align=left><input name=reporttype class=radio type=radio value="free">[% 'Free report period' | $T8 %]</th> |
52 | 88 |
<td align=left colspan=4> |
53 | 89 |
[% 'From' | $T8 %] [% L.date_tag('fromdate', fromdate) %] |
54 |
[% 'Bis' | $T8 %] [% L.date_tag('todate') %]
|
|
90 |
[% 'Bis' | $T8 %] [% L.date_tag('todate', todate) %]
|
|
55 | 91 |
</td> |
56 | 92 |
</tr> |
57 | 93 |
<tr> |
... | ... | |
125 | 161 |
</tr> |
126 | 162 |
[%- END %] |
127 | 163 |
|
164 |
|
|
128 | 165 |
[%- IF is_bwa %] |
129 | 166 |
[%- PROCESS projectnumber %] |
130 | 167 |
<input type=hidden name=nextsub value=generate_bwa> |
... | ... | |
138 | 175 |
</tr> |
139 | 176 |
[%- END %] |
140 | 177 |
|
178 |
|
|
179 |
[%- IF is_erfolgsrechnung %] |
|
180 |
<input type=hidden name=nextsub value=generate_erfolgsrechnung> |
|
181 |
</table> |
|
182 |
<table> |
|
183 |
[%- PROCESS customized_report %] |
|
184 |
[%- END %] |
|
185 |
|
|
186 |
|
|
141 | 187 |
[%- IF is_balance_sheet %] |
142 | 188 |
<input type=hidden name=nextsub value=generate_balance_sheet> |
143 | 189 |
<tr> |
... | ... | |
323 | 369 |
<input type=submit class=submit name=action value="[% 'Continue' | $T8 %]"> |
324 | 370 |
|
325 | 371 |
</form> |
372 |
|
|
373 |
<script type="text/javascript"> |
|
374 |
function format_date(yy, mm, dd) { |
|
375 |
var format = "[% dateformat %]"; |
|
376 |
format = format.replace("yyyy", "yy"); |
|
377 |
format = format.replace("yy", yy); |
|
378 |
format = format.replace("mm", mm); |
|
379 |
format = format.replace("dd", dd); |
|
380 |
return format; |
|
381 |
} |
|
382 |
function set_from_to(duetyp, year) { |
|
383 |
switch(duetyp) { |
|
384 |
case '1': |
|
385 |
document.getElementById('fromdate').value=format_date(year, '01', '01'); |
|
386 |
document.getElementById('todate').value=format_date(year, '01', '31'); |
|
387 |
break; |
|
388 |
case '2': |
|
389 |
document.getElementById('fromdate').value=format_date(year, '02', '01'); |
|
390 |
if(year % 4) document.getElementById('todate').value=format_date(year, '02', '28'); |
|
391 |
else document.getElementById('todate').value=format_date(year, '2', '29'); |
|
392 |
break; |
|
393 |
case '3': |
|
394 |
document.getElementById('fromdate').value=format_date(year, '03', '01'); |
|
395 |
document.getElementById('todate').value=format_date(year, '03', '31'); |
|
396 |
break; |
|
397 |
case '4': |
|
398 |
document.getElementById('fromdate').value=format_date(year, '04', '01'); |
|
399 |
document.getElementById('todate').value=format_date(year, '04', '30'); |
|
400 |
break; |
|
401 |
case '5': |
|
402 |
document.getElementById('fromdate').value=format_date(year, '05', '01'); |
|
403 |
document.getElementById('todate').value=format_date(year, '05', '31'); |
|
404 |
break; |
|
405 |
case '6': |
|
406 |
document.getElementById('fromdate').value=format_date(year, '06', '01'); |
|
407 |
document.getElementById('todate').value=format_date(year, '06', '30'); |
|
408 |
break; |
|
409 |
case '7': |
|
410 |
document.getElementById('fromdate').value=format_date(year, '07', '01'); |
|
411 |
document.getElementById('todate').value=format_date(year, '07', '31'); |
|
412 |
break; |
|
413 |
case '8': |
|
414 |
document.getElementById('fromdate').value=format_date(year, '08', '01'); |
|
415 |
document.getElementById('todate').value=format_date(year, '08', '31'); |
|
416 |
break; |
|
417 |
case '9': |
|
418 |
document.getElementById('fromdate').value=format_date(year, '09', '01'); |
|
419 |
document.getElementById('todate').value=format_date(year, '09', '30'); |
|
420 |
break; |
|
421 |
case '10': |
|
422 |
document.getElementById('fromdate').value=format_date(year, '10', '01'); |
|
423 |
document.getElementById('todate').value=format_date(year, '10', '31'); |
|
424 |
break; |
|
425 |
case '11': |
|
426 |
document.getElementById('fromdate').value=format_date(year, '11', '01'); |
|
427 |
document.getElementById('todate').value=format_date(year, '11', '30'); |
|
428 |
break; |
|
429 |
case '12': |
|
430 |
document.getElementById('fromdate').value=format_date(year, '12', '01'); |
|
431 |
document.getElementById('todate').value=format_date(year, '12', '31'); |
|
432 |
break; |
|
433 |
case '13': |
|
434 |
document.getElementById('fromdate').value=format_date(year, '01', '01'); |
|
435 |
document.getElementById('todate').value=format_date(year, '12', '31'); |
|
436 |
break; |
|
437 |
case 'A': |
|
438 |
document.getElementById('fromdate').value=format_date(year, '01', '01'); |
|
439 |
document.getElementById('todate').value=format_date(year, '03', '31'); |
|
440 |
break; |
|
441 |
case 'B': |
|
442 |
document.getElementById('fromdate').value=format_date(year, '04', '01'); |
|
443 |
document.getElementById('todate').value=format_date(year, '06', '30'); |
|
444 |
break; |
|
445 |
case 'C': |
|
446 |
document.getElementById('fromdate').value=format_date(year, '07', '01'); |
|
447 |
document.getElementById('todate').value=format_date(year, '09', '31'); |
|
448 |
break; |
|
449 |
case 'D': |
|
450 |
document.getElementById('fromdate').value=format_date(year, '10', '01'); |
|
451 |
document.getElementById('todate').value=format_date(year, '12', '31'); |
|
452 |
break; |
|
453 |
default: |
|
454 |
document.getElementById('fromdate').value=format_date(year, '01', '01'); |
|
455 |
document.getElementById('todate').value=format_date(year, '12', '31'); |
|
456 |
} |
|
457 |
return true; |
|
458 |
} |
|
459 |
</script> |
|
460 |
|
Auch abrufbar als: Unified diff
Erfolgsrechnung