5 <script type="text/javascript">
7 function updateTaxes(row)
9 var accno = document.getElementById('accno_' + row);
10 var taxkey = accno.options[accno.selectedIndex].value;
11 var reg = /--([0-9]*)/;
12 var found = reg.exec(taxkey);
14 index = parseInt(index);
15 var tax = 'taxchart_' + row;
16 var taxkeyposition = taxkey.lastIndexOf(found[0]);
17 var account = taxkey.substr(0, taxkeyposition);
20 if (window.XMLHttpRequest)
21 {// code for IE7+, Firefox, Chrome, Opera, Safari
22 xmlhttp=new XMLHttpRequest();
26 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
28 xmlhttp.onreadystatechange=function()
30 if (xmlhttp.readyState==4 && xmlhttp.status==200)
32 var element = document.getElementById("taxchart_" + row);
33 element.innerHTML = xmlhttp.responseText;
36 xmlhttp.open("GET","gl.pl?action=get_tax_dropdown&accno=" + account + "&select_index=" + index,true);
40 function copy_debit_to_credit() {
41 var txt = document.getElementsByName('debit_1')[0].value;
42 document.getElementsByName('credit_2')[0].value = txt;
46 <script type="text/javascript" src="js/show_form_details.js"></script>
47 <script type="text/javascript" src="js/follow_up.js"></script>
49 <form method=post name="gl" action=gl.pl>
51 [% FOREACH name IN [ 'id', 'closedto', 'locked', 'storno', 'storno_id', 'previous_id', 'previous_gldate' ] %]
52 [% L.hidden_tag(name, $name) %]
55 <input type=hidden name=title value="[% hide_title | html %]">
57 <input type="hidden" name="follow_up_trans_id_1" value="[% id | html %]">
58 <input type="hidden" name="follow_up_trans_type_1" value="gl_transaction">
59 <input type="hidden" name="follow_up_trans_info_1" value="[% id | html %]">
60 <input type="hidden" name="follow_up_rowcount" value="1">
64 <th class=listtop>[% title | html %]</th>
66 [%- IF saved_message %]
68 <td>[% saved_message | html %]</th>
77 <td colspan="6" align="left">[% 'Previous transnumber text' | $T8 %] [% previous_id %] . [% 'Previous transdate text' | $T8 %] [% previous_gldate %]</td>
80 <th align=right>[% 'Reference' | $T8 %]</th>
81 <td>[% L.input_tag('reference', reference, size=20, readonly=readonly) %]</td>
85 <th align=right width=50% nowrap>[% 'Date' | $T8 %]</th>
86 <td>[% L.date_tag('transdate', transdate, readonly=readonly) %]</td>
93 <th align=right>[% 'Belegnummer' | $T8 %]</th>
94 <td>[% L.input_tag('id', id, size=20, readonly=readonly) %]</td>
98 <th align=right width=50%>[% 'Buchungsdatum' | $T8 %]</th>
99 <td align=left>[% L.date_tag('gldate', gldate, readonly=1) %]</td>
106 [%- IF selectdepartment %]
108 <th align=right nowrap>[% 'Department' | $T8 %]</th>
109 <td colspan=3><select name=department>[% selectdepartment %]</select></td>
110 <input type=hidden name=selectdepartment value="[% selectdepartment | html %]">
115 <th align=right width=1%>[% 'Description' | $T8 %]</th>
116 <td width=1%>[% L.areainput_tag('description', description, cols=50, readonly=readonly) %]</td>
120 <th align=left>[% 'MwSt. inkl.' | $T8 %]</th>
121 <td>[% L.checkbox_tag('taxincluded', checked=taxincluded) %]</td>
129 <th align=right width=50%>[% 'Mitarbeiter' | $T8 %]</th>
130 <td align=left>[% L.input_tag('employee', employee, size=20, readonly=readonly) %]</td>
141 <td>[% 'OB Transaction' | $T8 %] [% L.checkbox_tag('ob_transaction' checked=ob_transaction) %]</td>
142 <td>[% 'CB Transaction' | $T8 %] [% L.checkbox_tag('cb_transaction' checked=cb_transaction) %]</td>
148 <td width="1%" align="right" nowrap>[% 'Show details' | $T8 %]</td>
149 <td width="1%">[% L.checkbox_tag('show_details', checked=show_details, onclick='show_form_details();') %]</td>
155 <tr class=listheading>
156 <th class=listheading style="width:15%">[% 'Account' | $T8 %]</th>
157 <th class=listheading style="width:10%">[% 'Chart balance' | $T8 %]</th>
158 <th class=listheading style="width:10%">[% 'Debit' | $T8 %]</th>
159 <th class=listheading style="width:10%">[% 'Credit' | $T8 %]</th>
160 <th class=listheading style="width:10%">[% 'Tax' | $T8 %]</th>
161 <th class=listheading style="width:5%">[% 'Taxkey' | $T8 %]</th>
163 [%- IF show_details %]
164 <th class=listheading style="width:20%">[% 'Source' | $T8 %]</th>
165 <th class=listheading style="width:20%">[% 'Memo' | $T8 %]</th>
166 <th class=listheading style="width:20%">[% 'Project Number' | $T8 %]</th>
171 [%- PROCESS 'gl/form_header_chart_balances_js.html' %]