1 [% USE HTML %][% USE LxERP %]<body onload="on_load();">
3 [%- IF vc == 'customer' %]
4 [%- SET is_customer = '1' %]
6 [%- SET is_customer = '0' %]
9 <script type="text/javascript">
12 Calendar.setup({ inputField : "transdatefrom", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdatefrom_trigger" });
13 Calendar.setup({ inputField : "transdateto", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdateto_trigger" });
14 document.Form.donumber.focus();
19 <style type="text/css">
25 <form method="post" action="do.pl" name="Form">
27 <div class="listtop">[% title %]</div>
32 <th align="right">[% IF is_customer %]<translate>Customer</translate>[% ELSE %]<translate>Vendor</translate>[% END %]</th>
34 [%- UNLESS SHOW_VC_DROP_DOWN %]
35 <input type="text" name="[% HTML.escape(vc) %]" class="fixed_width">
36 [% INCLUDE 'generic/autocomplete.html', AUTOCOMPLETES => [
37 { script => 'ct.pl', column => 'name', selector => 'input[name="' _ vc _ '"]', params => { vc => vc } },
41 <select name="[% vc %]" class="fixed_width">
43 [%- FOREACH row = ALL_VC %]
44 <option>[% HTML.escape(row.name) %]--[% HTML.escape(row.id) %]</option>
47 <input type="hidden" name="select[% vc %]" value="1">
53 <th align="right"><translate>Delivery Order Number</translate></th>
54 <td colspan="3"><input name="donumber" class="fixed_width"></td>
58 <th align="right"><translate>Order Number</translate></th>
59 <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
62 [%- IF ALL_DEPARTMENTS.size %]
64 <th align="right" nowrap><translate>Department</translate></th>
66 <select name="department" class="fixed_width">
68 [%- FOREACH row = ALL_DEPARTMENTS %]
69 <option[% IF department == row.value %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
77 <th align="right"><translate>Employee</translate></th>
79 <select name="employee_id" class="fixed_width">
81 [%- FOREACH row = ALL_EMPLOYEES %]
82 <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
90 <th align="right"><translate>Salesman</translate></th>
92 <select name="salesman_id" class="fixed_width">
94 [%- FOREACH row = ALL_SALESMEN %]
95 <option value="[% HTML.escape(row.id) %]">[% IF row.name %][% HTML.escape(row.name) %][% ELSE %][% HTML.escape(row.login) %][% END %]</option>
103 <th align="right"><translate>Transaction description</translate></th>
104 <td colspan="3"><input name="transaction_description" class="fixed_width"></td>
108 <th align="right"><translate>Customer Order Number</translate></th>
109 <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
113 <th align="right"><translate>Project Number</translate></th>
115 <select name="project_id" class="fixed_width">
117 [%- FOREACH row = ALL_PROJECTS %]
118 <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
125 <th align="right"><translate>From</translate></th>
127 <input name="transdatefrom" id="transdatefrom" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
128 <input type="button" name="transdatefrom_button" id="transdatefrom_trigger" value="?">
130 <th align="right"><translate>Bis</translate></th>
132 <input name="transdateto" id="transdateto" size="11" title="[% myconfig_dateformat %]" onBlur="check_right_date_format(this)">
133 <input type="button" name="transdateto_button" id="transdateto_trigger" value="?">
138 <th align="right"><translate>Include in Report</translate></th>
143 <input type="checkbox" name="open" value="1" id="open" checked>
144 <label for="open"><translate>Open</translate></label>
147 <input type="checkbox" name="closed" value="1" id="closed">
148 <label for="closed"><translate>Closed</translate></label>
154 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
155 <label for="notdelivered"><translate>Not delivered</translate></label>
158 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
159 <label for="delivered"><translate>Delivered</translate></label></td>
164 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
165 <label for="l_id"><translate>ID</translate></label>
169 <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
170 <label for="l_donumber"><translate>Delivery Order Number</translate></label>
176 <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
177 <label for="l_ordnumber"><translate>Order Number</translate></label>
181 <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y">
182 <label for="l_cusordnumber"><translate>Customer Order Number</translate></label>
188 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
189 <label for="l_transdate"><translate>Date</translate></label>
193 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
194 <label for="l_name">[% IF is_customer %]<translate>Customer</translate>[% ELSE %]<translate>Vendor</translate>[% END %]</label>
200 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
201 <label for="l_employee"><translate>Employee</translate></label>
205 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
206 <label for="l_salesman"><translate>Salesman</translate></label>
210 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
211 <label for="l_shipvia"><translate>Ship via</translate></label>
217 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
218 <label for="l_globalprojectnumber"><translate>Project Number</translate></label>
222 <input name="l_transaction_description" id="l_transaction_description" class="checkbox" type="checkbox" value="Y">
223 <label for="l_transaction_description"><translate>Transaction description</translate></label>
233 <hr size="3" noshade>
236 <input type="hidden" name="nextsub" value="orders">
237 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
238 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
240 <input class="submit" type="submit" name="action" value="<translate>Continue</translate>">