[%- USE HTML %]
[%- USE LxERP %]
[%- USE L %]
-<body onLoad="[% onload %]">
+<h1>[% 'Journal' | $T8 %]</h1>
-<form method=post action=gl.pl>
+<form method=post id="form" action=gl.pl>
<input type=hidden name=sort value=datesort>
<table width=100%>
- <tr>
- <th class=listtop>[% 'Journal' | $T8 %]</th>
- </tr>
- <tr height="5"></tr>
<tr>
<td>
<table>
<tr>
<th align=right>[% 'Reference / Invoice Number' | $T8 %]</th>
- <td><input name=reference size=20></td>
+ <td><input name="reference" size="20" class="initial_focus"></td>
<th align=right>[% 'Source' | $T8 %]</th>
<td><input name=source size=20></td>
</tr>
- [%- IF all_departments %]
+ [%- IF ALL_DEPARTMENTS %]
<tr>
<th align=right nowrap>[% 'Department' | $T8 %]</th>
- <td colspan=3>[% L.select_tag('department', all_departments, value_title_sub = \department_label, with_empty = 1) %]</td>
+ <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, title_key = 'description', with_empty = 1) %]</td>
</tr>
[%- END %]
<tr>
</tr>
<tr>
<th align=right>[% 'Employee' | $T8 %]</th>
- <td colspan=3>[% L.select_tag('employee', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1) %]</td>
+ <td colspan=3>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1) %]</td>
</tr>
<tr>
<th align=right>[% 'Filter date by' | $T8 %]</th>
<td colspan=3>
- <input name=datesort class=radio type=radio value=gldate checked> [% 'Booking Date' | $T8 %]
- <input name=datesort class=radio type=radio value=transdate> [% 'Invoice Date' | $T8 %]
+ <input name=datesort class=radio type=radio value=transdate checked> [% 'Transdate' | $T8 %]
+ <input name=datesort class=radio type=radio value=gldate> [% 'Gldate' | $T8 %]
</td>
</tr>
<tr>
<td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td>
<td>[% 'ID' | $T8 %]</td>
<td align=right><input name="l_transdate" class=checkbox type=checkbox value=Y checked></td>
- <td>[% 'Invoice Date' | $T8 %]</td>
+ <td>[% 'Transdate' | $T8 %]</td>
<td align=right><input name="l_gldate" class=checkbox type=checkbox value=Y checked></td>
- <td>[% 'Booking Date' | $T8 %]</td>
+ <td>[% 'Gldate' | $T8 %]</td>
<td align=right><input name="l_reference" class=checkbox type=checkbox value=Y checked></td>
<td>[% 'Reference' | $T8 %]</td>
<td align=right><input name="l_description" class=checkbox type=checkbox value=Y checked></td>
</table>
</td>
</tr>
- <tr>
- <td><hr size=3 noshade></td>
- </tr>
</table>
-
-<input type=hidden name=nextsub value=generate_report>
-
-<br>
-<input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
</form>
-