kivitendo/templates/webpages/oe/search.html @ 52b6788d
df005c49 | Sven Schöling | [%- USE HTML %]
|
||
a00e1b52 | Sven Schöling | [%- USE T8 %]
|
||
dfee9199 | Sven Schöling | [%- USE LxERP %]
|
||
92331b8e | Moritz Bunkus | [%- USE L %]
|
||
3aa5cee2 | Sven Schöling | <h1>[% HTML.escape(title) %]</h1>
|
||
dfee9199 | Sven Schöling | [%- SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
|
||
[%- SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
|
||||
fac049a0 | Bernd Bleßmann | [%- SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
|
||
df005c49 | Sven Schöling | |||
<form method="post" action="oe.pl">
|
||||
<table width="100%">
|
||||
<tr>
|
||||
<td>
|
||||
<table>
|
||||
<tr>
|
||||
<th align="right">[% HTML.escape(vclabel) %]</th>
|
||||
<td colspan="3">
|
||||
[%- INCLUDE 'generic/multibox.html'
|
||||
name = vc,
|
||||
default = vc == 'customer' ? oldcustomer : oldvendor,
|
||||
style = 'width: 250px',
|
||||
DATA = ALL_VC,
|
||||
id_sub = 'vc_keys',
|
||||
label_key = 'name',
|
||||
select = vc_select,
|
||||
limit = vclimit,
|
||||
show_empty = 1,
|
||||
allow_textbox = 1,
|
||||
f29fd47b | Moritz Bunkus | class = 'initial_focus',
|
||
df005c49 | Sven Schöling | -%]
|
||
</td>
|
||||
</tr>
|
||||
b98b8e3f | Sven Schöling | <tr>
|
||
<th align="right" nowrap>[% 'Contact Person' | $T8 %]</th>
|
||||
<td colspan="3">[% L.input_tag("cp_name", '', style="width: 250px") %]</td>
|
||||
</tr>
|
||||
df005c49 | Sven Schöling | [%- IF ALL_DEPARTMENTS.size %]
|
||
<tr>
|
||||
dfee9199 | Sven Schöling | <th align="right" nowrap>[% 'Department' | $T8 %]</th>
|
||
df005c49 | Sven Schöling | <td colspan="3">
|
||
[%- INCLUDE 'generic/multibox.html'
|
||||
name = 'department_id',
|
||||
style = 'width: 250px',
|
||||
DATA = ALL_DEPARTMENTS,
|
||||
id_key = 'id',
|
||||
label_key = 'description',
|
||||
limit = vclimit,
|
||||
show_empty = 1,
|
||||
allow_textbox = 1,
|
||||
-%]
|
||||
</td>
|
||||
</tr>
|
||||
[%- END %]
|
||||
<tr>
|
||||
<th align="right">[% HTML.escape(ordlabel) %]</th>
|
||||
<td colspan="3"><input name="[% HTML.escape(ordnrname) %]" style="width: 250px"></td>
|
||||
</tr>
|
||||
b96c67e5 | Moritz Bunkus | [% IF is_order %]
|
||
<tr>
|
||||
<th align="right">[% LxERP.t8("Customer Order Number") %]</th>
|
||||
<td colspan="3">[% L.input_tag("cusordnumber", '', style="width: 250px") %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
df005c49 | Sven Schöling | <tr>
|
||
dfee9199 | Sven Schöling | <th align="right">[% 'Employee' | $T8 %]</th>
|
||
58966151 | Thomas Heck | <td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
|
||
df005c49 | Sven Schöling | </tr>
|
||
<tr>
|
||||
dfee9199 | Sven Schöling | <th align="right">[% 'Salesman' | $T8 %]</th>
|
||
58966151 | Thomas Heck | <td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, style='width:250px') %]</td>
|
||
df005c49 | Sven Schöling | </tr>
|
||
3fcf64fc | Bernd Bleßmann | <tr>
|
||
<th align="right">[% 'Steuersatz' | $T8 %]</th>
|
||||
<td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', style='width: 250px') %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align="right">[% 'Shipping Point' | $T8 %]</th>
|
||||
<td colspan="3">[% L.input_tag('shippingpoint', '', style='width:250px') %]</td>
|
||||
</tr>
|
||||
df005c49 | Sven Schöling | <tr>
|
||
dfee9199 | Sven Schöling | <th align="right">[% 'Transaction description' | $T8 %]</th>
|
||
df005c49 | Sven Schöling | <td colspan="3"><input name="transaction_description" style="width: 250px"></td>
|
||
</tr>
|
||||
<tr>
|
||||
dfee9199 | Sven Schöling | <th align="right">[% 'Project Number' | $T8 %]</th>
|
||
df005c49 | Sven Schöling | <td colspan="3">
|
||
[%- INCLUDE 'generic/multibox.html'
|
||||
777d9b30 | Sven Schöling | name = vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
|
||
df005c49 | Sven Schöling | style = "width: 250px",
|
||
DATA = ALL_PROJECTS,
|
||||
id_key = 'id',
|
||||
label_key = 'projectnumber',
|
||||
limit = vclimit,
|
||||
show_empty = 1,
|
||||
allow_textbox = 1,
|
||||
-%]
|
||||
</td>
|
||||
</tr>
|
||||
fac049a0 | Bernd Bleßmann | [%- UNLESS ALL_BUSINESS_TYPES.size == 0 %]
|
||
<tr>
|
||||
<th align="right" nowrap>[% vctypelabel %]</th>
|
||||
<td colspan="3">
|
||||
[% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, style='width:250px') %]
|
||||
</td>
|
||||
</tr>
|
||||
[%- END %]
|
||||
df005c49 | Sven Schöling | <tr>
|
||
a00e1b52 | Sven Schöling | <th align="right">[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
|
||
df005c49 | Sven Schöling | <td>
|
||
46bc75c8 | Thomas Heck | [% L.date_tag('transdatefrom') %]
|
||
df005c49 | Sven Schöling | </td>
|
||
dfee9199 | Sven Schöling | <th align="right">[% 'Bis' | $T8 %]</th>
|
||
df005c49 | Sven Schöling | <td>
|
||
46bc75c8 | Thomas Heck | [% L.date_tag('transdateto') %]
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
90c872ee | Sven Schöling | <tr>
|
||
a00e1b52 | Sven Schöling | <th align="right">[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
|
||
90c872ee | Sven Schöling | <td>
|
||
46bc75c8 | Thomas Heck | [% L.date_tag('reqdatefrom') %]
|
||
90c872ee | Sven Schöling | </td>
|
||
dfee9199 | Sven Schöling | <th align="right">[% 'Bis' | $T8 %]</th>
|
||
90c872ee | Sven Schöling | <td>
|
||
46bc75c8 | Thomas Heck | [% L.date_tag('reqdateto') %]
|
||
90c872ee | Sven Schöling | </td>
|
||
</tr>
|
||||
a809ab0a | Bernd Bleßmann | |||
[%- IF type == 'sales_order' %]
|
||||
<tr>
|
||||
<th align="right">[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
|
||||
<td>
|
||||
[% L.date_tag('insertdatefrom') %]
|
||||
</td>
|
||||
<th align="right">[% 'Bis' | $T8 %]</th>
|
||||
<td>
|
||||
[% L.date_tag('insertdateto') %]
|
||||
</td>
|
||||
</tr>
|
||||
[%- END %]
|
||||
3da73190 | Moritz Bunkus | [%- IF type == 'sales_quotation' %]
|
||
<tr>
|
||||
<th align="right">[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
|
||||
<td>
|
||||
[% L.date_tag('expected_billing_date_from', '' 'BL') %]
|
||||
</td>
|
||||
<th align="right">[% 'Expected billing date' | $T8 %] [% 'Bis' | $T8 %]</th>
|
||||
<td>
|
||||
[% L.date_tag('expected_billing_date_to', '' 'BL') %]
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th align="right">[% 'Order probability' | $T8 %]</th>
|
||||
<td colspan="3">
|
||||
[% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %]
|
||||
[% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]
|
||||
</td>
|
||||
</tr>
|
||||
[%- END %]
|
||||
df005c49 | Sven Schöling | <tr>
|
||
dfee9199 | Sven Schöling | <th align="right">[% 'Include in Report' | $T8 %]</th>
|
||
df005c49 | Sven Schöling | <td colspan="5">
|
||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<input type="checkbox" name="open" value="1" id="open" checked>
|
||||
dfee9199 | Sven Schöling | <label for="open">[% 'Open' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input type="checkbox" name="closed" value="1" id="closed">
|
||||
dfee9199 | Sven Schöling | <label for="closed">[% 'Closed' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
[%- IF type == 'sales_order' OR type == 'purchase_order' %]
|
||||
<tr>
|
||||
<td>
|
||||
<input name="notdelivered" id="notdelivered" class="checkbox" type="checkbox" value="1" checked>
|
||||
dfee9199 | Sven Schöling | <label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="delivered" id="delivered" class="checkbox" type="checkbox" value="1" checked>
|
||||
dd9b159a | Jan Büren | <label for="delivered">[% 'Delivery Order(s) for full qty created' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
92331b8e | Moritz Bunkus | [%- END %]
|
||
[%- IF type == 'sales_order' %]
|
||||
<tr>
|
||||
<td>
|
||||
[% L.checkbox_tag("periodic_invoices_active", label => LxERP.t8("Periodic invoices active")) %]
|
||||
</td>
|
||||
<td>
|
||||
[% L.checkbox_tag("periodic_invoices_inactive", label => LxERP.t8("Periodic invoices inactive")) %]
|
||||
</td>
|
||||
</tr>
|
||||
df005c49 | Sven Schöling | [%- END %]
|
||
<tr>
|
||||
<td>
|
||||
<input name="l_id" id="l_id" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_id">[% 'ID' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" class="checkbox" type="checkbox" value="Y" checked>
|
||||
<label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
|
||||
</td>
|
||||
b96c67e5 | Moritz Bunkus | [% IF is_order %]
|
||
<td>
|
||||
<input name="l_cusordnumber" id="l_cusordnumber" class="checkbox" type="checkbox" value="Y" checked>
|
||||
<label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
|
||||
</td>
|
||||
[% END %]
|
||||
df005c49 | Sven Schöling | </tr>
|
||
<tr>
|
||||
<td>
|
||||
<input name="l_transdate" id="l_transdate" class="checkbox" type="checkbox" value="Y" checked>
|
||||
dfee9199 | Sven Schöling | <label for="l_transdate">[% 'Date' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_reqdate" id="l_reqdate" class="checkbox" type="checkbox" value="Y" checked>
|
||||
a00e1b52 | Sven Schöling | <label for="l_reqdate">[% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
a809ab0a | Bernd Bleßmann | [%- IF type == 'sales_order' %]
|
||
<td>
|
||||
<input name="l_insertdate" id="l_insertdate" class="checkbox" type="checkbox" value="Y">
|
||||
<label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
|
||||
</td>
|
||||
[%- END %]
|
||||
df005c49 | Sven Schöling | </tr>
|
||
<tr>
|
||||
<td>
|
||||
<input name="l_name" id="l_name" class="checkbox" type="checkbox" value="Y" checked>
|
||||
<label for="l_name">[% HTML.escape(vclabel) %]
|
||||
</td>
|
||||
<td>
|
||||
<input name="l_employee" id="l_employee" class="checkbox" type="checkbox" value="Y" checked>
|
||||
dfee9199 | Sven Schöling | <label for="l_employee">[% 'Employee' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_shipvia" id="l_shipvia" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
7d026c7c | Niclas Zimmermann | <tr>
|
||
<td>
|
||||
<input name="l_customernumber" id="l_customernumber" class="checkbox" type="checkbox" value="Y">
|
||||
<label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
|
||||
</td>
|
||||
3fcf64fc | Bernd Bleßmann | <td>[%- L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]</td>
|
||
<td>[%- L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]</td>
|
||||
7d026c7c | Niclas Zimmermann | </tr>
|
||
df005c49 | Sven Schöling | <tr>
|
||
<td>
|
||||
<input name="l_netamount" id="l_netamount" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_netamount">[% 'Amount' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_tax" id="l_tax" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_tax">[% 'Tax' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_amount" id="l_amount" class="checkbox" type="checkbox" value="Y" checked>
|
||||
dfee9199 | Sven Schöling | <label for="l_amount">[% 'Total' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input name="l_marge_total" id="l_marge_total" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_marge_percent" id="l_marge_percent" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input name="l_globalprojectnumber" id="l_globalprojectnumber" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
24cdf9e9 | Moritz Bunkus | <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 %]>
|
||
dfee9199 | Sven Schöling | <label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
<tr>
|
||||
<td>
|
||||
<input name="l_subtotal" id="l_subtotal" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
<td>
|
||||
<input name="l_salesman" id="l_salesman" class="checkbox" type="checkbox" value="Y">
|
||||
dfee9199 | Sven Schöling | <label for="l_salesman">[% 'Salesman' | $T8 %]</label>
|
||
df005c49 | Sven Schöling | </td>
|
||
</tr>
|
||||
3da73190 | Moritz Bunkus | [% IF type == 'sales_quotation' %]
|
||
<tr>
|
||||
<td colspan="2">
|
||||
<input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" class="checkbox" type="checkbox" value="Y">
|
||||
<label for="l_order_probability_expected_billing_date">[% 'Order probability & expected billing date' | $T8 %]</label>
|
||||
</td>
|
||||
</tr>
|
||||
[%- END %]
|
||||
50133d13 | Sven Schöling | <tr>
|
||
<td>
|
||||
<input name="l_remaining_amount" id="l_remaining_amount" class="checkbox" type="checkbox" value="Y">
|
||||
<label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
|
||||
</td>
|
||||
<td>
|
||||
<input name="l_remaining_netamount" id="l_remaining_netamount" class="checkbox" type="checkbox" value="Y">
|
||||
<label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
|
||||
</td>
|
||||
</tr>
|
||||
15bcb411 | Sven Schöling | <tr>
|
||
130ba50d | David Ohlbrecht | <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
|
||
15bcb411 | Sven Schöling | </tr>
|
||
<tr>
|
||||
8145351d | David Ohlbrecht | <td>
|
||
130ba50d | David Ohlbrecht | <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
|
||
<label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
|
||||
8145351d | David Ohlbrecht | </td>
|
||
d5f7b8ed | Sven Schöling | <td>
|
||
15bcb411 | Sven Schöling | <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
|
||
dfee9199 | Sven Schöling | <label for="l_country">[% 'Country' | $T8 %]</label>
|
||
15bcb411 | Sven Schöling | </td>
|
||
d5f7b8ed | Sven Schöling | <td>
|
||
15bcb411 | Sven Schöling | <input name="l_ustid" id="l_ustid" class="checkbox" type="checkbox" value="Y">
|
||
dfee9199 | Sven Schöling | <label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
|
||
15bcb411 | Sven Schöling | </td>
|
||
</tr>
|
||||
df005c49 | Sven Schöling | [%- IF type == 'sales_order' %]
|
||
<tr><td colspan="3"><hr></td></tr>
|
||||
[%- END %]
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<br>
|
||||
<input type="hidden" name="nextsub" value="orders">
|
||||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||||
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
|
||||
dfee9199 | Sven Schöling | <input class="submit" type="submit" name="action" value="[% 'Continue' | $T8 %]">
|
||
df005c49 | Sven Schöling | </form>
|