5  <form method=post name="search" action=[% script %]>
 
   7   <table width=100% border="0">
 
  12       <th align=right>[% 'Customer' | $T8 %]</th>
 
  14             [%- INCLUDE 'generic/multibox.html'
 
  16                  default       = oldcustomer,
 
  17                  style         = 'width: 250px',
 
  25                  class         = 'initial_focus',
 
  30      <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
 
  31      <td colspan="3">[% L.input_tag("cp_name", '', size=20) %]</td>
 
  34       <th align=right nowrap>[% 'Department' | $T8 %]</th>
 
  36             [%- INCLUDE 'generic/multibox.html'
 
  38                  select_name   = 'department_id',
 
  39                  style         = 'width: 250px',
 
  40                  DATA          = ALL_DEPARTMENTS,
 
  42                  label_key     = 'description',
 
  49       <th align=right nowrap>[% 'Invoice Number' | $T8 %]</th>
 
  50       <td colspan=3><input name=invnumber id=invnumber size=20></td>
 
  53       <th align=right nowrap>[% 'Order Number' | $T8 %]</th>
 
  54       <td colspan=3><input name=ordnumber id=ordnumber size=20></td>
 
  57       <th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
 
  58       <td colspan=3><input name="cusordnumber" id="cusordnumber" size="20"></td>
 
  61       <th align="right">[% 'Employee' | $T8 %]</th>
 
  62       <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
 
  65      <th align="right">[% 'Salesman' | $T8 %]</th>
 
  66      <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, style = 'width:250px') %]</td>
 
  69       <th align=right nowrap>[% 'Transaction description' | $T8 %]</th>
 
  70       <td colspan=3><input name=transaction_description id=transaction_description size=40></td>
 
  73       <th align=right nowrap>[% 'Notes' | $T8 %]</th>
 
  74       <td colspan=3><input name=notes id=notes size=40></td>
 
  77       <th align="right">[% 'Project Number' | $T8 %]</th>
 
  79             [%- INCLUDE 'generic/multibox.html'
 
  81                  style         = "width: 250px",
 
  84                  label_key     = 'projectnumber',
 
  91     [% IF SHOW_BUSINESS_TYPES %]
 
  93       <th align="right" nowrap>[% 'Customer type' | $T8 %]</th>
 
  95           [%- INCLUDE 'generic/multibox.html'
 
  97                  style         = "width: 250px",
 
  98                  DATA          =  ALL_BUSINESS_TYPES,
 
 100                  label_key     = 'description',
 
 109       <th align=right nowrap>[% 'Invoice Date' | $T8 %]</th>
 
 112        [% L.date_tag('transdatefrom') %]
 
 114      <th align=right>[% 'Bis' | $T8 %]</th>
 
 116       [% L.date_tag('transdateto') %]
 
 120       <th align=right nowrap>[% 'Due Date' | $T8 %]</th>
 
 123        [% L.date_tag('duedatefrom') %]
 
 125      <th align=right>[% 'Bis' | $T8 %]</th>
 
 127       [% L.date_tag('duedateto') %]
 
 131 [%- IF CT_CUSTOM_VARIABLES.size %]
 
 134       <td colspan=4 align=left><b>[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</td>
 
 136     [% CT_CUSTOM_VARIABLES_FILTER_CODE %]
 
 139    <input type=hidden name=sort value=transdate>
 
 147         <th align=right nowrap>[% 'Include in Report' | $T8 %]</th>
 
 151            <td align=right><input name=open id=open class=checkbox type=checkbox value=Y checked></td>
 
 152            <td nowrap>[% 'Open' | $T8 %]</td>
 
 153            <td align=right><input name=closed id=closed class=checkbox type=checkbox value=Y [% IF closed %] checked[% END %]></td>
 
 154            <td nowrap>[% 'Closed' | $T8 %]</td>
 
 157            <td align=right><input name="l_id" class=checkbox type=checkbox value=Y></td>
 
 158            <td nowrap>[% 'ID' | $T8 %]</td>
 
 159            <td align=right><input name="l_invnumber" id="l_invnumber" class=checkbox type=checkbox value=Y checked></td>
 
 160            <td nowrap>[% 'Invoice Number' | $T8 %]</td>
 
 161            <td align=right><input name="l_ordnumber" id="l_ordnumber" class=checkbox type=checkbox value=Y></td>
 
 162            <td nowrap>[% 'Order Number' | $T8 %]</td>
 
 163            <td align=right><input name="l_cusordnumber" id="l_cusordnumber" class=checkbox type=checkbox value=Y checked></td>
 
 164            <td nowrap>[% 'Customer Order Number' | $T8 %]</td>
 
 167            <td align=right><input name="l_transdate" id="l_transdate" class=checkbox type=checkbox value=Y checked></td>
 
 168            <td nowrap>[% 'Invoice Date' | $T8 %]</td>
 
 169            <td align=right><input name="l_name" id="l_name" class=checkbox type=checkbox value=Y checked></td>
 
 170            <td nowrap>[% 'Customer' | $T8 %]</td>
 
 171            <td align=right><input name="l_customernumber" id="l_customernumber" class=checkbox type=checkbox value=Y></td>
 
 172            <td nowrap>[% 'Customer Number' | $T8 %]</td>
 
 175            <td align=right><input name="l_netamount" id="l_netamount" class=checkbox type=checkbox value="Y" checked></td>
 
 176            <td nowrap>[% 'Amount' | $T8 %]</td>
 
 177            <td align=right><input name="l_tax" id="l_tax" class=checkbox type=checkbox value=Y></td>
 
 178            <td nowrap>[% 'Tax' | $T8 %]</td>
 
 179            <td align=right><input name="l_amount" id="l_amount" class=checkbox type=checkbox value="Y" checked></td>
 
 180            <td nowrap>[% 'Total' | $T8 %]</td>
 
 183            <td align=right><input name="l_datepaid" id="l_datepaid" class=checkbox type=checkbox value=Y></td>
 
 184            <td nowrap>[% 'Date Paid' | $T8 %]</td>
 
 185            <td align=right><input name="l_paid" id="l_paid" class=checkbox type=checkbox value=Y checked></td>
 
 186            <td nowrap>[% 'Paid' | $T8 %]</td>
 
 187            <td align=right><input name="l_duedate" id="l_duedate" class=checkbox type=checkbox value=Y></td>
 
 188            <td nowrap>[% 'Due Date' | $T8 %]</td>
 
 189            <td align=right><input name="l_due" id="l_due" class=checkbox type=checkbox value=Y></td>
 
 190            <td nowrap>[% 'Amount Due' | $T8 %]</td>
 
 193            <td align=right><input name="l_notes" id="l_notes" class=checkbox type=checkbox value=Y></td>
 
 194            <td nowrap>[% 'Notes' | $T8 %]</td>
 
 195            <td align=right><input name="l_salesman" id="l_salesman" class=checkbox type=checkbox value=Y></td>
 
 196            <td nowrap>[% 'Salesperson' | $T8 %]</td>
 
 197            <td align=right><input name="l_shippingpoint" id="l_shippingpoint" class=checkbox type=checkbox value=Y></td>
 
 198            <td nowrap>[% 'Shipping Point' | $T8 %]</td>
 
 199            <td align=right><input name="l_shipvia" id="l_shipvia" class=checkbox type=checkbox value=Y></td>
 
 200            <td nowrap>[% 'Ship via' | $T8 %]</td>
 
 203            <td align=right><input name="l_marge_total" id="l_marge_total" class=checkbox type=checkbox value=Y></td>
 
 204            <td nowrap> [% 'Ertrag' | $T8 %]</td>
 
 205            <td align=right><input name="l_marge_percent" id="l_marge_percent" class=checkbox type=checkbox value=Y></td>
 
 206            <td nowrap> [% 'Ertrag prozentual' | $T8 %]</td>
 
 207            <td align=right><input name="l_employee" id="l_employee" class=checkbox type=checkbox value=Y></td>
 
 208            <td nowrap>[% 'Employee' | $T8 %]</td>
 
 211            <td align=right><input name="l_subtotal" id="l_subtotal" class=checkbox type=checkbox value=Y></td>
 
 212            <td nowrap>[% 'Subtotal' | $T8 %]</td>
 
 213            <td align=right><input name="l_globalprojectnumber" id="l_globalprojectnumber" class=checkbox type=checkbox value=Y></td>
 
 214            <td nowrap>[% 'Document Project Number' | $T8 %]</td>
 
 215            <td align=right><input name="l_transaction_description" id="l_transaction_description" class=checkbox type=checkbox value=Y[% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]></td>
 
 216            <td nowrap>[% 'Transaction description' | $T8 %]</td>
 
 217            <td align=right><input name="l_dunning_description" id="l_dunning_description" class=checkbox type=checkbox value=Y></td>
 
 218            <td nowrap>[% 'Dunning level' | $T8 %]</td>
 
 221            <td align=right><input name="l_taxzone" id="l_taxzone" class=checkbox type=checkbox value=Y></td>
 
 222            <td nowrap>[% 'Steuersatz' | $T8 %]</td>
 
 223            <td align=right><input name="l_payment_terms" id="l_payment_terms" class=checkbox type=checkbox value=Y></td>
 
 224            <td nowrap>[% 'Payment Terms' | $T8 %]</td>
 
 225            <td align=right><input name="l_charts" id="l_charts" class=checkbox type=checkbox value=Y></td>
 
 226            <td nowrap>[% 'Buchungskonto' | $T8 %]</td>
 
 227            <td align=right><input name="l_direct_debit" id="l_direct_debit" class=checkbox type=checkbox value=Y></td>
 
 228            <td nowrap>[% 'direct debit' | $T8 %]</td>
 
 231            <td colspan=4 align=left><b>[% 'Customer' | $T8 %] </td>
 
 234            <td align=right><input name="l_customernumber" id="l_customernumber" class=checkbox type=checkbox value=Y></td>
 
 235            <td nowrap>[% 'Customer Number' | $T8 %]</td>
 
 236            <td align=right><input name="l_country" id="l_country" class=checkbox type=checkbox value=Y></td>
 
 237            <td nowrap>[% 'Country' | $T8 %]</td>
 
 238            <td align=right><input name="l_ustid" id="l_ustid" class=checkbox type=checkbox value=Y></td>
 
 239            <td nowrap>[% 'USt-IdNr.' | $T8 %]</td>
 
 243             <tr><td align="right">
 
 244             [% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
 
 255      <td><hr size=3 noshade></td>
 
 258    <input type=hidden name=nextsub value=[% nextsub %]>
 
 260    <input class=submit type=submit name=action id="continue" value="[% 'Continue' | $T8 %]">
 
 262  <script type="text/javascript">
 
 264    $(document).ready(function(){
 
 265     $('customer').focus();