$::form->all_vc(\%::myconfig, $::form->{vc}, $is_sales ? "AR" : "AP");
$vc .= "<option>$_->{name}--$_->{id}\n" for @{ $::form->{"all_$::form->{vc}"} };
$vc = ($vc)
- ? qq|<select name=$::form->{vc}><option>\n$vc</select>|
- : qq|<input name=$::form->{vc} size=35>|;
+ ? qq|<select name=$::form->{vc} class="initial_focus"><option>\n$vc</select>|
+ : qq|<input name=$::form->{vc} size=35 class="initial_focus">|;
}
my ($selection, $paymentaccounts);
limit = vclimit,
show_empty = 1,
allow_textbox = 1,
+ class = 'initial_focus',
-%]
</td>
</tr>
<table>
<tr>
<th align="right" nowrap>[% 'Name' | $T8 %]</th>
- <td><input name="filter.cp_name" size="35"></td>
+ <td><input name="filter.cp_name" size="35" class="initial_focus"></td>
</tr>
<tr>
<th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
<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>
<br>
<input class=submit type=submit name=action value="[% 'Continue' | $T8 %]">
</form>
-
<tr>
<th align="right" nowrap>[% 'Part Description' | $T8 %]</th>
- <td colspan="3"><input name="description" size="40"></td>
+ <td colspan="3"><input name="description" size="40" class="initial_focus"></td>
</tr>
<tr>
limit = vclimit,
show_empty = 1,
allow_textbox = 1,
+ class = 'initial_focus',
-%]
</td>
</tr>
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
<input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
</form>
-
<tr>
<th align="right">[% 'Description' | $T8 %]</th>
- <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60) %]</td>
+ <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60, class='initial_focus') %]</td>
</tr>
<tr>
</tr>
<tr>
<th colspan=1>[% 'Year' | $T8 %]</th>
- <td><input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]"></td>
+ <td><input name=year size=11 title="[% 'YYYY' | $T8 %]" value="[% year %]" class="initial_focus"></td>
</tr>
<tr>
<td align=right> <b>[% 'Yearly' | $T8 %]</b> </td>
<input type=hidden name=nextsub value=generate_projects>
<tr>
<th align=right>[% 'as at' | $T8 %]</th>
- <td> [% L.date_tag('fromdate', fromdate) %]</td>
+ <td> [% L.date_tag('fromdate', fromdate, class='initial_focus') %]</td>
<th align=right nowrap>[% 'Compare to' | $T8 %]</th>
<td>[% L.date_tag('todate') %]</td>
</tr>
<input type=hidden name=nextsub value=generate_balance_sheet>
<tr>
<th align=right>[% 'as at' | $T8 %]</th>
- <td> [% L.date_tag('asofdate', asofdate) %]</td>
+ <td> [% L.date_tag('asofdate', asofdate, class="initial_focus") %]</td>
<td><input name=l_cb class=checkbox type=checkbox value=Y> [% 'CB Transactions' | $T8 %]</td>
<td><input name=l_ob class=checkbox type=checkbox value=Y> [% 'only OB Transactions' | $T8 %]</td>
</tr>
</tr>
<tr>
<th align=right>[% 'Reference' | $T8 %]</th>
- <td colspan=3><input name=reference></td>
+ <td colspan=3><input name=reference class="initial_focus"></td>
</tr>
<tr>
<th align=right nowrap>[% 'Source' | $T8 %]</th>
<table>
<tr>
<td align="right">[%- IF vc == 'vendor' %][% 'Vendor' | $T8 %][%- ELSE %][%- LxERP.t8('Customer') %][%- END %]</td>
- <td><input name="f_vc"></td>
+ <td><input name="f_vc" class="initial_focus"></td>
</tr>
<tr>
limit = vclimit,
show_empty = 1,
allow_textbox = 1,
+ class = 'initial_focus',
-%]
</td>