8 [% IF vc == 'customer' %]
9 [% SET is_customer = '1' %]
11 [% SET is_customer = '0' %]
14 [% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
16 <form method="post" action="do.pl" name="Form" id="form">
20 <table class="tbl-horizontal">
21 <caption>[% 'Customer' | $T8 %]</caption>
22 <colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
25 <th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
26 <td>[% P.input_tag(vc, "", class="fixed_width initial_focus wi-normal") %]</td>
28 [% IF ALL_BUSINESS_TYPES.size %]
30 <th>[% vctypelabel %]</th>
31 <td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key='description', with_empty=1, class='wi-normal') %] </td>
35 <th>[% 'Contact Person' | $T8 %]</th>
36 <td>[% L.input_tag("cp_name", '', class="fixed_width wi-normal") %]</td>
39 <th class="caption" colspan="2">[% 'Handling' | $T8 %]</th>
42 <th>[% 'Employee' | $T8 %]</th>
43 <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
47 <th>[% 'Salesman' | $T8 %]</th>
48 <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
50 [% END %] [% IF ALL_DEPARTMENTS.size %]
52 <th>[% 'Department' | $T8 %]</th>
53 <td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="fixed_width wi-normal") %]</td>
57 <th>[% 'Delivery Order Date' | $T8 %] [% #'From' | $T8 %]</th>
58 <td><span class="wi-date">[% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]</span></td>
61 <th>[% 'Reqdate' | $T8 %] [% #'From' | $T8 %]</th>
62 <td><span class="wi-date">[% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]</span></td>
65 <th>[% 'Insert Date' | $T8 %] [% #'From' | $T8 %]</th>
66 <td><span class="wi-date">[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]</span></td>
71 <table class="tbl-horizontal">
72 <caption>[% 'Order & Numbers' | $T8 %]</caption>
73 <colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
76 <th>[% 'Delivery Order Number' | $T8 %]</th>
77 <td> <input type="text" name="donumber" class="fixed_width wi-mediumsmall">
81 <th>[% 'Order Number' | $T8 %]</th>
82 <td> <input type="text" name="ordnumber" class="fixed_width wi-mediumsmall">
85 [%- IF type == "purchase_delivery_order" %]
87 <th>[% 'Order Confirmation Number' | $T8 %]</th>
88 <td> <input type="text" name="order_confirmation_number" class="fixed_width wi-mediumsmall">
92 <th>[% 'Vendor Confirmation Number' | $T8 %]</th>
93 <td> <input type="text" name="vendor_confirmation_number" class="fixed_width wi-mediumsmall">
98 <th>[% 'Customer Order Number' | $T8 %]</th>
99 <td> <input type="text" name="cusordnumber" class="fixed_width wi-mediumsmall">
103 <th>[% 'Project Number' | $T8 %]</th>
105 <select name="project_id" class="fixed_width wi-mediumsmall">
107 [% FOREACH row = ALL_PROJECTS %]
108 <option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
114 <th>[% 'Transaction description' | $T8 %]</th>
115 <td> <input type="text" name="transaction_description" class="fixed_width wi-mediumsmall">
119 <th align="right">[% 'Full Text' | $T8 %]</th>
120 <td>[% L.input_tag('fulltext', '', class="fixed_width wi-mediumsmall") %]</td>
123 <th class="caption" colspan="2">[% 'Article data' | $T8 %]</th>
126 <th>[% 'Part Description' | $T8 %]</th>
127 <td> <input type="text" name="parts_description" class="fixed_width wi-mediumsmall">
131 <th>[% 'Part Number' | $T8 %]</th>
132 <td> <input type="text" name="parts_partnumber" class="fixed_width wi-mediumsmall">
136 <th>[% 'Serial Number' | $T8 %]</th>
137 <td> <input type="text" name="serialnumber" class="fixed_width wi-mediumsmall">
141 <th>[% 'Charge Number' | $T8 %]</th>
142 <td> <input type="text" name="chargenumber" class="fixed_width wi-mediumsmall">
149 </div><!-- ./wrapper -->
151 <div class="form-addition control-panel wrapper">
152 <h3>[% 'Include in Report' | $T8 %]</h3>
153 <div class="list col wi-small">
154 <h4>[% 'Status' | $T8 %]</h4>
156 <input type="checkbox" name="open" value="1" id="open" checked>
157 <label for="open">[% 'Open' | $T8 %]</label>
160 <input type="checkbox" name="closed" value="1" id="closed">
161 <label for="closed">[% 'Closed' | $T8 %]</label>
164 <input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked>
165 <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
168 <input name="delivered" id="delivered" type="checkbox" value="1" checked>
169 <label for="delivered">[% 'Delivered' | $T8 %]</label>
172 <div class="list col">
173 <h4>[% 'Numbers & IDs' | $T8 %]</h4>
175 <input name="l_id" id="l_id" type="checkbox" value="Y">
176 <label for="l_id">[% 'ID' | $T8 %]</label>
179 <input name="l_donumber" id="l_donumber" type="checkbox" value="Y" checked>
180 <label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
183 <input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y" checked>
184 <label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
186 [%- IF type == "purchase_delivery_order" %]
188 <input name="l_order_confirmation_number" id="l_order_confirmation_number" type="checkbox" value="Y" checked>
189 <label for="l_order_confirmation_number">[% 'Order Confirmation Number' | $T8 %]</label>
192 <input name="l_vendor_confirmation_number" id="l_vendor_confirmation_number" type="checkbox" value="Y" checked>
193 <label for="l_vendor_confirmation_number">[% 'Vendor Confirmation Number' | $T8 %]</label>
197 <input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked>
198 <label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
202 <input name="l_customernumber" id="l_customernumber" type="checkbox" value="Y">
203 <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
207 <input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y">
208 <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
211 <div class="list col">
212 <h4>[% 'Dates' | $T8 %]</h4>
214 <input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked>
215 <label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
218 <input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked>
219 <label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
223 <input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
224 <label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
228 <div class="list col">
229 <h4>[% 'Order data' | $T8 %]</h4>
231 <input name="l_name" id="l_name" type="checkbox" value="Y" checked>
232 <label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
235 <input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF (instance_conf.get_require_transaction_description_ps) %] checked[% END %]>
236 <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
239 <input name="l_items" id="l_items" type="checkbox" value="Y">
240 <label for="l_items">[% 'Positions' | $T8 %]</label>
243 <div class="list col">
244 <h4>[% 'Handling' | $T8 %]</h4>
246 <input name="l_employee" id="l_employee" type="checkbox" value="Y" checked>
247 <label for="l_employee">[% 'Employee' | $T8 %]</label>
250 <input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
251 <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
254 <input name="l_department" id="l_department" type="checkbox" value="Y">
255 <label for="l_department">[% "Department" | $T8 %]</label>
258 <input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y">
259 <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
262 </div><!-- /.form-addition /.wrapper -->
266 <input type="hidden" name="action" value="orders">
267 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
268 <input type="hidden" name="type" value="[% HTML.escape(type) %]">