5 <h1>[% HTML.escape(title) %]</h1>
7 [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
8 [%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
9 [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
11 <form method="post" action="oe.pl">
18 <th align="right">[% HTML.escape(vclabel) %]</th>
20 [%- INCLUDE 'generic/multibox.html'
22 default = vc == 'customer' ? oldcustomer : oldvendor,
23 style = 'width: 250px',
31 class = 'initial_focus',
36 <th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
37 <td colspan="3">[% L.input_tag("cp_name", '', style="width: 250px") %]</td>
39 [%- IF ALL_DEPARTMENTS.size %]
41 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
43 [%- INCLUDE 'generic/multibox.html'
44 name = 'department_id',
45 style = 'width: 250px',
46 DATA = ALL_DEPARTMENTS,
48 label_key = 'description',
57 <th align="right">[% HTML.escape(ordlabel) %]</th>
58 <td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
62 <th align="right">[% LxERP.t8("Customer Order Number") %]</th>
63 <td colspan="3">[% L.input_tag("cusordnumber", '', style="width: 250px") %]</td>
67 <th align="right">[% 'Employee' | $T8 %]</th>
68 <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
71 <th align="right">[% 'Salesman' | $T8 %]</th>
72 <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
75 <th align="right">[% 'Steuersatz' | $T8 %]</th>
76 <td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %]</td>
79 <th align="right">[% 'Shipping Point' | $T8 %]</th>
80 <td colspan="3">[% L.input_tag('shippingpoint', '', style='width:250px') %]</td>
83 <th align="right">[% 'Transaction description' | $T8 %]</th>
84 <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
87 <th align="right">[% 'Project Number' | $T8 %]</th>
89 [%- INCLUDE 'generic/multibox.html'
90 name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
91 style = "width: 250px",
94 label_key = 'projectnumber',
101 [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
103 <th align="right" nowrap>[% vctypelabel %]</th>
105 [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
110 <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
112 [% L.date_tag('transdatefrom') %]
114 <th align="right">[% 'Bis' | $T8 %]</th>
116 [% L.date_tag('transdateto') %]
120 <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
122 [% L.date_tag('reqdatefrom') %]
124 <th align="right">[% 'Bis' | $T8 %]</th>
126 [% L.date_tag('reqdateto') %]
129 [%- IF type == 'sales_quotation' %]
131 <th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
133 [% L.date_tag('expected_billing_date_from', '' 'BL') %]
135 <th align="right">[% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %]</th>
137 [% L.date_tag('expected_billing_date_to', '' 'BL') %]
141 <th align="right">[% 'Order probability' | $T8 %]</th>
143 [% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
144 [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
149 <th align="right">[% 'Include in Report' | $T8 %]</th>
154 <input type="checkbox" name="open" value="1" id="open" checked>
155 <label for="open">[% 'Open' | $T8 %]</label>
158 <input type="checkbox" name="closed" value="1" id="closed">
159 <label for="closed">[% 'Closed' | $T8 %]</label>
162 [%- IF type == 'sales_order' OR type == 'purchase_order' %]
165 <input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
166 <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
169 <input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
170 <label for="delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
174 [%- IF type == 'sales_order' %]
177 [% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
180 [% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
186 <input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
187 <label for="l_id">[% 'ID' | $T8 %]</label>
190 <input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
191 <label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
195 <input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
196 <label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
202 <input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
203 <label for="l_transdate">[% 'Date' | $T8 %]</label>
206 <input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
207 <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
212 <input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
213 <label for="l_name">[% HTML.escape(vclabel) %]
216 <input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
217 <label for="l_employee">[% 'Employee' | $T8 %]</label>
220 <input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
221 <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
226 <input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
227 <label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
229 <td>[%- L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]</td>
230 <td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
234 <input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
235 <label for="l_netamount">[% 'Amount' | $T8 %]</label>
238 <input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
239 <label for="l_tax">[% 'Tax' | $T8 %]</label>
242 <input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
243 <label for="l_amount">[% 'Total' | $T8 %]</label>
248 <input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
249 <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
252 <input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
253 <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
258 <input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
259 <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
262 <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 %]>
263 <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
268 <input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
269 <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
272 <input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
273 <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
276 [% IF type == 'sales_quotation' %]
279 <input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" class="checkbox" type="checkbox" value="Y">
280 <label for="l_order_probability_expected_billing_date">[% 'Order probability & expected billing date' | $T8 %]</label>
286 <input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
287 <label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
290 <input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
291 <label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
295 <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
299 <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
300 <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
303 <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
304 <label for="l_country">[% 'Country' | $T8 %]</label>
307 <input name="l_ustid" id="l_ustid" class="checkbox" type="checkbox" value="Y">
308 <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
311 [%- IF type == 'sales_order' %]
312 <tr><td colspan="3"><hr></td></tr>
323 <input type="hidden" name="nextsub" value="orders">
324 <input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
325 <input type="hidden" name="type" value="[% HTML.escape(type) %]">
326 <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">