show_empty = 1,
allow_textbox = 1,
-%]
-[% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
- { script => 'ct.pl', column => 'name', selector => 'input[name="customer"]', params => { vc => 'customer' } },
-]
-%]
</td>
</tr>
<tr>
<tr>
<th align=right nowrap><translate>From</translate></th>
<td>
- <input name=transdatefrom id=transdatefrom size=11 title="dateformat | html %]" onBlur=\"check_right_date_format(this)\">
+ <input name=transdatefrom id=transdatefrom size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
<input type=button name=transdatefrom id="trigger1" value=<translate>button</translate>>
</td>
<th align=right><translate>Bis</translate></th>
<td>
- <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur=\"check_right_date_format(this)\">
+ <input name=transdateto id=transdateto size=11 title="[% dateformat | html %]" onBlur="check_right_date_format(this)">
<input type=button name=transdateto name=transdateto id="trigger2" value=<translate>button</translate>>
</td>
</tr>
<tr>
<td align=right><input name="l_name" class=checkbox type=checkbox value=Y checked></td>
<td nowrap><translate>Customer</translate></td>
- <td align=right><input name="l_netamount" class=checkbox type=checkbox value=Y></td>
+ <td align=right><input name="l_netamount" class=checkbox type=checkbox value="Y" checked></td>
<td nowrap><translate>Amount</translate></td>
<td align=right><input name="l_tax" class=checkbox type=checkbox value=Y></td>
<td nowrap><translate>Tax</translate></td>
- <td align=right><input name="l_amount" class=checkbox type=checkbox value=Y checked></td>
+ <td align=right><input name="l_amount" class=checkbox type=checkbox value="Y" checked></td>
<td nowrap><translate>Total</translate></td>
</tr>
<tr>
<br>
<input class=submit type=submit name=action value="<translate>Continue</translate>">
</form>
- </body>
<script type="text/javascript">
<!--
Calendar.setup( { inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BR", button : "trigger1" });
Calendar.setup( { inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
$(document).ready(function(){
- focus();
+ $('customer').focus();
setupDateFormat('[% dateformat | html %]','<translate>Falsches Datumsformat!</translate>');
setupPoints('[% numberformat | html %]','<translate>wrongformat</translate>');
})
//-->
</script>
+ </body>
</html>