[%- USE T8 %]
-[% USE HTML %][% USE LxERP %]<body onload="on_load()">
+[%- USE HTML %]
+[%- USE LxERP %]
+[%- USE L %]
+<h1>[% title %]</h1>
<script type="text/javascript" src="js/show_form_details.js"></script>
<script type="text/javascript" src="js/show_history.js"></script>
<script type="text/javascript" src="js/vendor_selection.js"></script>
<script type="text/javascript" src="js/calculate_qty.js"></script>
<script type="text/javascript" src="js/stock_in_out.js"></script>
-
- <script type="text/javascript">
- <!--
- function on_load() {
- [% IF onload %][% onload %];[% END %]
- setupDateFormat('[% myconfig_dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
- setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
-
- [%- UNLESS delivered %]
- Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "transdate_trigger" });
- [%- END %]
- }
- -->
- </script>
+ <script type="text/javascript" src="js/follow_up.js"></script>
+ <script type="text/javascript" src="js/kivi.SalesPurchase.js"></script>
<style type="text/css">
.fixed_width {
[%- SET is_customer = '0' %]
[%- END %]
[%- IF delivered %]
- [%- SET RO = ' readonly' %]
[%- SET DISABLED = ' disabled' %]
[%- END %]
- <div class="listtop">[% title %]</div>
+[%- INCLUDE 'common/flash.html' %]
+[%- INCLUDE 'generic/set_longdescription.html' %]
[%- IF ERRORS && ERRORS.size %]
<p><font color="#ff0000">[% ERRORS.join('<br>') %]</font></p>
<form method="post" name="do" action="do.pl">
+ <div id="do_tabs" class="tabwidget">
+ <ul>
+ <li><a href="#ui-tabs-basic-data">[% 'Basic Data' | $T8 %]</a></li>
+[%- IF INSTANCE_CONF.get_webdav %]
+ <li><a href="#ui-tabs-webdav">[% 'WebDAV' | $T8 %]</a></li>
+[%- END %]
+[%- IF id %]
+ <li><a href="controller.pl?action=RecordLinks/ajax_list&object_model=DeliveryOrder&object_id=[% HTML.url(id) %]">[% 'Linked Records' | $T8 %]</a></li>
+[%- END %]
+ </ul>
+
+ <div id="ui-tabs-basic-data">
+
+ <input type="hidden" name="follow_up_trans_id_1" value="[% HTML.escape(id) %]">
+ <input type="hidden" name="follow_up_trans_type_1" value="[% HTML.escape(type) %]">
+ <input type="hidden" name="follow_up_trans_info_1" value="[% HTML.escape(follow_up_trans_info) %]">
+ <input type="hidden" name="follow_up_rowcount" value="1">
+
+
<input type="hidden" name="action" value="[% HTML.escape(action) %]">
<input type="hidden" name="bcc" value="[% HTML.escape(bcc) %]">
<input type="hidden" name="business" value="[% HTML.escape(business) %]">
<input type="hidden" name="cc" value="[% HTML.escape(cc) %]">
<input type="hidden" name="closed" value="[% HTML.escape(closed) %]">
<input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
- <input type="hidden" name="curr" value="[% HTML.escape(curr) %]">
+ <input type="hidden" name="currency" value="[% HTML.escape(currency) %]">
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="discount" value="[% HTML.escape(discount) %]">
<input type="hidden" name="dunning_amount" value="[% HTML.escape(dunning_amount) %]">
<input type="hidden" name="shiptophone" value="[% HTML.escape(shiptophone) %]">
<input type="hidden" name="shiptostreet" value="[% HTML.escape(shiptostreet) %]">
<input type="hidden" name="shiptozipcode" value="[% HTML.escape(shiptozipcode) %]">
+ <input type="hidden" name="shiptocp_gender" value="[% HTML.escape(shiptocp_gender) %]">
+ <input type="hidden" name="show_details" value="[% HTML.escape(show_details) %]">
<input type="hidden" name="subject" value="[% HTML.escape(subject) %]">
<input type="hidden" name="taxincluded" value="[% HTML.escape(taxincluded) %]">
<input type="hidden" name="taxzone_id" value="[% HTML.escape(taxzone_id) %]">
- <input type="hidden" name="terms" value="[% HTML.escape(terms) %]">
<input type="hidden" name="title" value="[% HTML.escape(title) %]">
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
+ <input type="hidden" name="lastmtime" value="[% HTML.escape(lastmtime) %]">
<p>
<table width="100%">
<tr>
<input type="hidden" name="[% vc %]_id" value="[% HTML.escape(the_vc_id) %]">
<input type="hidden" name="old[% vc %]" value="[% HTML.escape(the_oldvc) %]">
+ <input type="hidden" name="tradediscount" value="[% HTML.escape(tradediscount) %]">
<th align="right">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
<td>
[%- UNLESS !delivered && SHOW_VC_DROP_DOWN %]
[%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
[%- END %]
[%- ELSE %]
- <select name="cp_id" class="fixed_width" >
- <option></option>
- [%- FOREACH row = ALL_CONTACTS %]
- <option value="[% HTML.escape(row.cp_id) %]"[% IF cp_id == row.cp_id %] selected[% END %]>
- [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
- </option>
- [%- END %]
- </select>
+ [% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style='width: 250px') %]
[%- END %]
</td>
</tr>
[%- END %]
[%- ELSE %]
- <select name="shipto_id" class="fixed_width" >
- <option></option>
- [%- FOREACH row = ALL_SHIPTO %]
- <option value="[% HTML.escape(row.shipto_id) %]"[% IF shipto_id == row.shipto_id %] selected[% END %]>
- [%- HTML.escape(row.shiptoname) -%]
- [%- IF row.shiptodepartment_1 %]; [% HTML.escape(row.shiptodepartment_1) -%][% END -%]
- [%- IF row.shiptostreet %]; [% HTML.escape(row.shiptostreet) -%][% END -%]
- [%- IF row.shiptocity %]; [% HTML.escape(row.shiptocity) -%][% END -%]
- </option>
- [%- END %]
- </select>
+ [% shiptos = [ [ "", LxERP.t8("No/individual shipping address") ] ] ;
+ L.select_tag('shipto_id', shiptos.import(ALL_SHIPTO), default=shipto_id, value_key='shipto_id', title_key='displayable_id', style='width: 250px') %]
[%- END %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td colspan="3">
- [%- IF delivered %]
- <input type="hidden" name="department" value="[% HTML.escape(department) %]">
- [%- FOREACH row = ALL_DEPARTMENTS %]
- [% IF department == row.value %][% HTML.escape(row.description) %]--[% HTML.escape(row.id) %][% END %]
- [%- END %]
- [%- ELSE %]
- <select name="department" class="fixed_width">
- <option></option>
- [%- FOREACH row = ALL_DEPARTMENTS %]
- <option[% IF department == row.value %] selected[% END %]>[% HTML.escape(row.description) %]--[% HTML.escape(row.id) %]</option>
- [%- END %]
- </select>
- [%- END %]
- </td>
+ [% IF ( delivered ) %]
+ [% L.hidden_tag('department_id', department_id) %]
+ [% END %]
+ [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width: 250px', disabled = delivered )%]
+ </td>
</tr>
[%- END %]
<tr>
<th align="right">[% 'Transaction description' | $T8 %]</th>
- <td colspan="3"><input name="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"[% RO %]></td>
+ <td colspan="3"><input name="transaction_description" id="transaction_description" size="35" value="[% HTML.escape(transaction_description) %]"[% RO %]></td>
</tr>
</table>
[% IF row.id == employee_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
[%- END %]
[%- ELSE %]
- <select name="employee_id">
- [%- FOREACH row = ALL_EMPLOYEES %]
- <option value="[% HTML.escape(row.id) %]"[% IF row.id == employee_id %] selected[% END %]>
- [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
- </option>
- [%- END %]
- </select>
+ [% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]
[%- END %]
</td>
</tr>
[% IF row.id == the_salesman_id %][%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %][% END %]
[%- END %]
[%- ELSE %]
- <select name="salesman_id">
- [%- FOREACH row = ALL_SALESMEN %]
- <option value="[% HTML.escape(row.id) %]"[% IF row.id == the_salesman_id %] selected[% END %]>
- [%- IF row.name %][%- HTML.escape(row.name) %][%- ELSE %][% HTML.escape(row.login) %][%- END %]
- </option>
- [%- END %]
- </select>
+ [% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %]
[%- END %]
</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Delivery Order Date' | $T8 %]</th>
<td nowrap>
- <input name="transdate" id="transdate" size="11" title="[% HTML.escape(myconfig_dateformat) %]" value="[% HTML.escape(transdate) %]"
- onBlur="check_right_date_format(this)"[% RO %]>
- [% UNLESS delivered %]<input type="button" name="b_transdate" id="transdate_trigger" value="?">[% END %]
+ [% L.date_tag('transdate', transdate, readonly => delivered) %]
</td>
</tr>
+ <tr>
+ <th align="right" nowrap>[% 'Reqdate' | $T8 %]</th>
+ <td nowrap>
+ [% L.date_tag('reqdate', reqdate, readonly => delivered) %]
+ </td>
+ </tr>
+
+ [%- IF is_customer %]
+ <tr>
+ <th align="right" nowrap>[% 'Insert Date' | $T8 %]</th>
+ <td>[% insertdate %]</td>
+ </tr>
+ [%- END %]
+
<tr>
<th width="70%" align="right" nowrap>[% 'Project Number' | $T8 %]</th>
<td>