kivitendo/templates/webpages/oe/search.html @ cd5e224c
9941fd46 | Hans P. Schlaepfer | [% USE T8 %]
|
||
[% USE HTML %]
|
||||
[% USE LxERP %]
|
||||
[% USE L %]
|
||||
[% USE P %]
|
||||
3aa5cee2 | Sven Schöling | <h1>[% HTML.escape(title) %]</h1>
|
||
a307e493 | Hans P. Schlaepfer | [% SET vclabel = vc == 'customer' ? LxERP.t8('Customer') : LxERP.t8('Vendor') %]
|
||
[% SET vcnumberlabel = vc == 'customer' ? LxERP.t8('Customer Number') : LxERP.t8('Vendor Number') %]
|
||||
[% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
|
||||
[% SET vcdefault = 'old' _ vc %]
|
||||
[% SET style="width: 250px" %]
|
||||
df005c49 | Sven Schöling | |||
d281eedf | Moritz Bunkus | <form method="post" action="oe.pl" id="form">
|
||
df005c49 | Sven Schöling | |||
a307e493 | Hans P. Schlaepfer | <div class="wrapper">
|
||
<table class="tbl-horizontal">
|
||||
<caption>[% HTML.escape(vclabel) %]</caption>
|
||||
<tbody>
|
||||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% HTML.escape(vclabel) %]</th>
|
||
<td>[% L.input_tag(vc, $vcdefault, class="initial_focus wi-normal") %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
b98b8e3f | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Contact Person' | $T8 %]</th>
|
||
<td>[% L.input_tag("cp_name", '', class="wi-normal") %]</td>
|
||||
b98b8e3f | Sven Schöling | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% UNLESS ALL_BUSINESS_TYPES.size == 0 %]
|
||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% vctypelabel %]</th>
|
||
<td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1, class="wi-normal") %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% END %]
|
||
</tbody>
|
||||
</table>
|
||||
<table class="tbl-horizontal">
|
||||
<caption>[% 'Request Quotation' | $T8 %]</caption>
|
||||
<colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
|
||||
<tbody>
|
||||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% HTML.escape(ordlabel) %]</th>
|
||
<td>[% L.input_tag(ordnrname, "", class="wi-lightwide") %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% IF is_order %]
|
||
b96c67e5 | Moritz Bunkus | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% LxERP.t8("Customer Order Number") %]</th>
|
||
<td>[% L.input_tag("cusordnumber", '', class="wi-lightwide") %]</td>
|
||||
b96c67e5 | Moritz Bunkus | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% END %]
|
||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Steuersatz' | $T8 %]</th>
|
||
<td>[% L.select_tag('taxzone_id', ALL_TAXZONES, with_empty=1, title_key='description', class="wi-lightwide") %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
<tr>
|
||||
a307e493 | Hans P. Schlaepfer | <th>[% 'Shipping Point' | $T8 %]</th>
|
||
<td>[% L.input_tag('shippingpoint', '', class="wi-lightwide") %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
3fcf64fc | Bernd Bleßmann | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Transaction description' | $T8 %]</th>
|
||
<td>[% L.input_tag("transaction_description", "", class="wi-lightwide") %]</td>
|
||||
3fcf64fc | Bernd Bleßmann | </tr>
|
||
<tr>
|
||||
a307e493 | Hans P. Schlaepfer | <th>[% 'Project' | $T8 %]</th>
|
||
<td>[% P.project.picker("project_id", '', class="wi-lightwide") %]</td>
|
||||
3fcf64fc | Bernd Bleßmann | </tr>
|
||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% IF is_order %][% 'Order Date' | $T8 %][% ELSE %][% 'Quotation Date' | $T8 %][% END %] [% 'From' | $T8 %]</th>
|
||
<td>[% L.date_tag('transdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto','', class='wi-date') %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
<tr>
|
||||
a307e493 | Hans P. Schlaepfer | <th>[% IF is_order %][% 'Delivery Date' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] [% 'From' | $T8 %]</th>
|
||
<td>[% L.date_tag('reqdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto','', class='wi-date') %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% IF type == 'sales_order' %]
|
||
fac049a0 | Bernd Bleßmann | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Insert Date' | $T8 %] [% 'From' | $T8 %]</th>
|
||
<td>[% L.date_tag('insertdatefrom','', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto','', class='wi-date') %]</td>
|
||||
fac049a0 | Bernd Bleßmann | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% END %]
|
||
[% IF type == 'sales_quotation' %]
|
||||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Expected billing date' | $T8 %] [% 'From' | $T8 %]</th>
|
||
<td>[% L.date_tag('expected_billing_date_from', '', class='wi-date') %] [% 'Bis' | $T8 %] [% L.date_tag('expected_billing_date_to', '', class='wi-date') %]</td>
|
||||
df005c49 | Sven Schöling | </tr>
|
||
90c872ee | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Order probability' | $T8 %]</th>
|
||
<td>[% L.select_tag('order_probability_op', [[ 'ge', '>=' ], [ 'le', '<=' ]]) %] [% L.select_tag('order_probability_value', ORDER_PROBABILITIES, title='title', with_empty=1) %]</td>
|
||||
90c872ee | Sven Schöling | </tr>
|
||
a307e493 | Hans P. Schlaepfer | [% END %]
|
||
[% IF CT_CUSTOM_VARIABLES.size %]
|
||||
<tr>
|
||||
<th class="caption" colspan="2">[% 'Custom variables for module' | $T8 %]: [%'Customers and vendors' | $T8 %]</th>
|
||||
</tr>
|
||||
[% CT_CUSTOM_VARIABLES_FILTER_CODE %]
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
a809ab0a | Bernd Bleßmann | |||
a307e493 | Hans P. Schlaepfer | |||
<table class="tbl-horizontal">
|
||||
<caption>[% 'Article' | $T8 %]</caption>
|
||||
<tbody>
|
||||
a809ab0a | Bernd Bleßmann | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Part Description' | $T8 %]</th>
|
||
<td>[% L.input_tag("parts_description", "", class="wi-normal") %]</td>
|
||||
a809ab0a | Bernd Bleßmann | </tr>
|
||
3da73190 | Moritz Bunkus | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Part Number' | $T8 %]</th>
|
||
<td>[% L.input_tag("parts_partnumber", "", class="wi-normal") %]</td>
|
||||
3da73190 | Moritz Bunkus | </tr>
|
||
<tr>
|
||||
a307e493 | Hans P. Schlaepfer | <th class="caption" colspan="2"> [% 'Handling' | $T8 %] </th>
|
||
3da73190 | Moritz Bunkus | </tr>
|
||
7e19c216 | Bernd Bleßmann | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Employee' | $T8 %]</th>
|
||
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class="wi-normal") %]</td>
|
||||
7e19c216 | Bernd Bleßmann | </tr>
|
||
a307e493 | Hans P. Schlaepfer | <tr>
|
||
<th>[% 'Salesman' | $T8 %]</th>
|
||||
<td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class="wi-normal") %]</td>
|
||||
</tr>
|
||||
[% IF ALL_DEPARTMENTS.size %]
|
||||
<tr>
|
||||
<th>[% 'Department' | $T8 %]</th>
|
||||
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, class="wi-normal") %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
7e19c216 | Bernd Bleßmann | |||
a307e493 | Hans P. Schlaepfer | <table class="tbl-horizontal">
|
||
<caption>[% 'State' | $T8 %]</caption>
|
||||
<tbody>
|
||||
df005c49 | Sven Schöling | <tr>
|
||
a307e493 | Hans P. Schlaepfer | <th>[% 'Open' | $T8 %]</th>
|
||
<td><input type="checkbox" name="open" value="1" id="open" checked></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Closed' | $T8 %]</th>
|
||||
<td><input type="checkbox" name="closed" value="1" id="closed"></td>
|
||||
</tr>
|
||||
[% IF type == 'sales_order' OR type == 'purchase_order' %]
|
||||
<tr>
|
||||
<th>[% 'Not delivered' | $T8 %]</th>
|
||||
<td><input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Delivery Order(s) for full qty created' | $T8 %]</th>
|
||||
<td><input name="delivered" id="delivered" type="checkbox" value="1" checked></td>
|
||||
</tr>
|
||||
[% END %] [% IF type == 'sales_order' %]
|
||||
<tr>
|
||||
<th>[% 'Periodic invoices active' | $T8 %]</th>
|
||||
<td>[% L.checkbox_tag("periodic_invoices_active") %]</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Periodic invoices inactive' | $T8 %]</th>
|
||||
<td>[% L.checkbox_tag("periodic_invoices_inactive") %]</td>
|
||||
</tr>
|
||||
[% END %]
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- /.wrapper -->
|
||||
bead93d9 | Bernd Bleßmann | |||
7e19c216 | Bernd Bleßmann | |||
a307e493 | Hans P. Schlaepfer | <div class="wrapper form-addition control-panel">
|
||
7e19c216 | Bernd Bleßmann | |||
a307e493 | Hans P. Schlaepfer | <h3>[% 'Include in Report' | $T8 %]</h3>
|
||
<div class="list col">
|
||||
<h4>[% 'Numbers & IDs' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_[% HTML.escape(ordnrname) %]" id="l_[% HTML.escape(ordnrname) %]" type="checkbox" value="Y" checked>
|
||||
<label for="l_[% HTML.escape(ordnrname) %]">[% HTML.escape(ordlabel) %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_id" id="l_id" type="checkbox" value="Y">
|
||||
<label for="l_id">[% 'ID' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y">
|
||||
<label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
|
||||
</div>
|
||||
[% IF is_order %]
|
||||
<div>
|
||||
<input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked>
|
||||
<label for="l_cusordnumber">[% LxERP.t8("Customer Order Number") %]</label>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4> [% 'Handling' | $T8 %] </h4>
|
||||
<div>
|
||||
<input name="l_employee" id="l_employee" type="checkbox" value="Y" checked>
|
||||
<label for="l_employee">[% 'Employee' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
|
||||
<label for="l_salesman">[% 'Salesman' | $T8 %]</label>
|
||||
</div></div>
|
||||
<div class="list col">
|
||||
<h4>[% 'Amounts' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_amount" id="l_amount" type="checkbox" value="Y" checked>
|
||||
<label for="l_amount">[% 'Total' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_marge_total" id="l_marge_total" type="checkbox" value="Y">
|
||||
<label for="l_marge_total">[% 'Ertrag' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_marge_percent" id="l_marge_percent" type="checkbox" value="Y">
|
||||
<label for="l_marge_percent">[% 'Ertrag prozentual' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_netamount" id="l_netamount" type="checkbox" value="Y">
|
||||
<label for="l_netamount">[% 'Amount' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_subtotal" id="l_subtotal" type="checkbox" value="Y">
|
||||
<label for="l_subtotal">[% 'Subtotal' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_remaining_amount" id="l_remaining_amount" type="checkbox" value="Y">
|
||||
<label for="l_remaining_amount">[% 'Remaining Amount' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_remaining_netamount" id="l_remaining_netamount" type="checkbox" value="Y">
|
||||
<label for="l_remaining_netamount">[% 'Remaining Net Amount' | $T8 %]</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>[% HTML.escape(vclabel) %]</h4>
|
||||
<div>
|
||||
<input name="l_name" id="l_name" type="checkbox" value="Y" checked>
|
||||
<label for="l_name">[% HTML.escape(vclabel) %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_vcnumber" id="l_vcnumber" type="checkbox" value="Y">
|
||||
<label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_country" id="l_country" type="checkbox" value="Y">
|
||||
<label for="l_country">[% 'Country' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_ustid" id="l_ustid" type="checkbox" value="Y">
|
||||
<label for="l_ustid">[% 'USt-IdNr.' | $T8 %]</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>[% 'Taxes' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_tax" id="l_tax" type="checkbox" value="Y">
|
||||
<label for="l_tax"> [% 'Tax' | $T8 %] </label>
|
||||
</div>
|
||||
<div>
|
||||
[% L.checkbox_tag('l_taxzone', label => LxERP.t8('Steuersatz')) %]
|
||||
</div>
|
||||
<div>
|
||||
<h4>[% 'Date' | $T8 %]</h4>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked>
|
||||
<label for="l_transdate"> [% 'Date' | $T8 %] </label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked>
|
||||
<label for="l_reqdate"> [% IF is_order %][% 'Required by' | $T8 %][% ELSE %][% 'Valid until' | $T8 %][% END %] </label>
|
||||
</div>
|
||||
[% IF type == 'sales_order' %]
|
||||
<div>
|
||||
<input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
|
||||
<label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>Order info</h4>
|
||||
<div>
|
||||
<input name="l_department" id="l_department" type="checkbox" value="Y">
|
||||
<label for="l_department"> [% 'Department' | $T8 %] </label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y">
|
||||
<label for="l_shipvia"> [% 'Ship via' | $T8 %] </label>
|
||||
</div>
|
||||
<div>
|
||||
[% L.checkbox_tag('l_shippingpoint', label => LxERP.t8('Shipping Point')) %]
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_payment_terms" id="l_payment_terms" type="checkbox" value="Y">
|
||||
<label for="l_payment_terms">[% 'Payment Terms' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF INSTANCE_CONF.get_require_transaction_description_ps %] checked[% END %]>
|
||||
<label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
|
||||
</div>
|
||||
[% IF type == 'sales_quotation' %]
|
||||
<div>
|
||||
<input name="l_order_probability_expected_billing_date" id="l_order_probability_expected_billing_date" type="checkbox" value="Y">
|
||||
<label for="l_order_probability_expected_billing_date"> [% 'Order probability & expected billing date' | $T8 %] </label>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>Custom Variables</h4><!-- PENDENT: Perl-Code anpassen (es werden keine DIVs gesetzt) -->
|
||||
[% CT_CUSTOM_VARIABLES_INCLUSION_CODE %]
|
||||
</div>
|
||||
</div>
|
||||
df005c49 | Sven Schöling | |||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||||
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
|
||||
d281eedf | Moritz Bunkus | <input type="hidden" name="action" value="orders">
|
||
df005c49 | Sven Schöling | </form>
|