3 [%- USE HTML %][%- USE LxERP %][%- USE P -%]
6 [%- IF vc == 'customer' %]
7 [%- SET is_customer = '1' %]
9 [%- SET is_customer = '0' %]
12 [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
14 <style type="text/css">
20 <form method="post" action="do.pl" name="Form" id="form">
25 <th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
26 <td colspan="3">[% P.input_tag(vc, "", class="fixed_width initial_focus") %]</td>
30 <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
31 <td colspan="3">[% L.input_tag("cp_name", '', class="fixed_width") %]</td>
35 <th align="right">[% 'Delivery Order Number' | $T8 %]</th>
36 <td colspan="3"><input name="donumber" class="fixed_width"></td>
40 <th align="right">[% 'Order Number' | $T8 %]</th>
41 <td colspan="3"><input name="ordnumber" class="fixed_width"></td>
44 [%- IF type == "purchase_delivery_order" %]
46 <th align="right">[% 'Order Confirmation Number' | $T8 %]</th>
47 <td colspan="3"><input name="order_confirmation_number" class="fixed_width"></td>
51 <th align="right">[% 'Vendor Confirmation Number' | $T8 %]</th>
52 <td colspan="3"><input name="vendor_confirmation_number" class="fixed_width"></td>
57 <th align="right">[% 'Customer Order Number' | $T8 %]</th>
58 <td colspan="3"><input name="cusordnumber" class="fixed_width"></td>
61 [%- IF ALL_DEPARTMENTS.size %]
63 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
64 <td colspan=3>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="fixed_width") %]</td>
69 <th align="right">[% 'Employee' | $T8 %]</th>
70 <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
75 <th align="right">[% 'Salesman' | $T8 %]</th>
76 <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key = 'safe_name', with_empty = 1, class = 'fixed_width') %]</td>
81 <th align="right">[% 'Transaction description' | $T8 %]</th>
82 <td><input name="transaction_description" class="fixed_width"></td>
83 <th align="right">[% 'Part Description' | $T8 %]</th>
84 <td><input name="parts_description" size="20" class="fixed_width"></td>
88 <th align="right">[% 'Full Text' | $T8 %]</th>
89 <td colspan="3">[% L.input_tag('fulltext', '', class="fixed_width") %]</td>
93 <th align="right">[% 'Project Number' | $T8 %]</th>
95 <select name="project_id" class="fixed_width">
97 [%- FOREACH row = ALL_PROJECTS %]
98 <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
102 <th align="right">[% 'Part Number' | $T8 %]</th>
103 <td><input name="parts_partnumber" size="20", class="fixed_width"></td>
107 <th align="right">[% 'Serial Number' | $T8 %]</th>
108 <td><input name="serialnumber" class="fixed_width"></td>
109 <th align="right">[% 'Charge Number' | $T8 %]</th>
110 <td><input name="chargenumber" class="fixed_width"></td>
113 [%- IF ALL_BUSINESS_TYPES.size %]
115 <th align="right" nowrap>[% vctypelabel %]</th>
117 [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
123 <th align="right">[% 'Delivery Order Date' | $T8 %] [% 'From' | $T8 %]</th>
125 [% L.date_tag('transdatefrom') %]
127 [% L.date_tag('transdateto') %]
132 <th align="right">[% 'Reqdate' | $T8 %] [% 'From' | $T8 %]</th>
134 [% L.date_tag('reqdatefrom') %]
136 [% L.date_tag('reqdateto') %]
141 <th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
143 [% L.date_tag('insertdatefrom') %]
145 [% L.date_tag('insertdateto') %]
150 <th align="right">[% 'Include in Report' | $T8 %]</th>
155 <input type="checkbox" name="open" value="1" id="open" checked>
156 <label for="open">[% 'Open' | $T8 %]</label>
159 <input type="checkbox" name="closed" value="1" id="closed">
160 <label for="closed">[% 'Closed' | $T8 %]</label>
166 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
167 <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
170 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
171 <label for="delivered">[% 'Delivered' | $T8 %]</label></td>
176 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
177 <label for="l_id">[% 'ID' | $T8 %]</label>
181 <input name="l_donumber" id="l_donumber" class="checkbox" type="checkbox" value="Y" checked>
182 <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
188 <input name="l_ordnumber" id="l_ordnumber" class="checkbox" type="checkbox" value="Y" checked>
189 <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
192 [%- IF type == "purchase_delivery_order" %]
194 <input name="l_order_confirmation_number" id="l_order_confirmation_number" class="checkbox" type="checkbox" value="Y" checked>
195 <label for="l_order_confirmation_number">[% 'Order Confirmation Number' | $T8 %]</label>
198 <input name="l_vendor_confirmation_number" id="l_vendor_confirmation_number" class="checkbox" type="checkbox" value="Y" checked>
199 <label for="l_vendor_confirmation_number">[% 'Vendor Confirmation Number' | $T8 %]</label>
204 <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
205 <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
211 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
212 <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
215 <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
216 <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
220 <input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
221 <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
228 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
229 <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
234 <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
235 <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
242 <input name="l_department" id="l_department" class="checkbox" type="checkbox" value="Y">
243 <label for="l_department">[% "Department" | $T8 %]</label>
247 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
248 <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
254 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
255 <label for="l_employee">[% 'Employee' | $T8 %]</label>
259 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
260 <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
266 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
267 <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
271 <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 %]>
272 <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
278 <input name="l_items" id="l_items" class="checkbox" type="checkbox" value="Y">
279 <label for="l_items">[% 'Positions' | $T8 %]</label>
289 <input type="hidden" name="action" value="orders">
290 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
291 <input type="hidden" name="type" value="[% HTML.escape(type) %]">