<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">
-<p><div class="listtop" width="100%">[% title %]</div></p>
+<h1>[% title %]</h1>
<p>[% saved_message %]</p>
allow_textbox = 1,
onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('[% HTML.escape(vc) %]')">
- </td>
<input type="hidden" name="customer_klass" value="[% HTML.escape(customer_klass) %]">
<input type="hidden" name="customer_id" value="[% HTML.escape(customer_id) %]">
<input type="hidden" name="oldcustomer" value="[% HTML.escape(oldcustomer) %]">
<input type="hidden" name="selectcustomer" value="[% HTML.escape(selectcustomer) %]">
+ </td>
</tr>
[%- IF ALL_CONTACTS.size %]
<tr>
<th align="right">[% 'Contact Person' | $T8 %]</th>
<td>
- [% L.select_tag('cp_id', L.options_for_select(ALL_CONTACTS, default=cp_id, value='cp_id', title_sub=\contact_labels, with_empty=1), style='width: 250px') %]
+ [% 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') %]
</td>
</tr>
[%- END %]
<tr>
<th align="right">[% 'Shipping Address' | $T8 %]</th>
<td>
- [% L.select_tag('shipto_id', L.options_for_select(ALL_SHIPTO, default=shipto_id, value='shipto_id', title_sub=\shipto_labels, with_empty=1), style='width: 250px', onChange="document.getElementById('update_button').click();") %]
+ [% L.select_tag('shipto_id', ALL_SHIPTO, default = shipto_id, value_key = 'shipto_id', title_key = 'displayable_id', with_empty = 1, style='width: 250px', onChange = "document.getElementById('update_button').click();") %]
</td>
</tr>
[%- END %]
[%- END %]
<tr>
<th align="right" nowrap>[% 'Record in' | $T8 %]</th>
- <td colspan="3"><select name="AR" style="width:250px;">[% selectAR %]</select></td>
- <input type="hidden" name="selectAR" value="[% selectAR %]">
+ <td colspan="3">
+ <select name="AR" style="width:250px;">[% selectAR %]</select>
+ <input type="hidden" name="selectAR" value="[% selectAR | html %]">
+ </td>
</tr>
<tr>
<th align="right">[% 'Steuersatz' | $T8 %]</th>
<td>
- [% L.select_tag('taxzone_id', L.options_for_select(ALL_TAXZONES, default=taxzone_id, title='description'), readonly=(id ? 1 : 0), style='width: 250px') %]
- </td>
+ [% L.select_tag('taxzone_id', ALL_TAXZONES, default = taxzone_id, title_key = 'description', disabled = (id ? 1 : 0), style='width: 250px', onchange = "document.getElementById('update_button').click();") %]
[%- IF id %]
<input type='hidden' name='taxzone_id' value='[% taxzone_id %]'>
[%- END %]
+ </td>
</tr>
[%- IF all_departments %]
<tr>
<th align="right" nowrap>[% 'Department' | $T8 %]</th>
<td colspan="3">
- [% L.select_tag('department_id', L.options_for_select(all_departments, default=department_id, title_sub=\department_labels, with_empty=1), style='width:250px') %]
+ [% L.select_tag('department_id', all_departments, default = department_id, title_sub = \department_labels, with_empty = 1, style = 'width:250px') %]
</td>
</tr>
[%- END %]
<td>[% currencies %]</td>
</tr>
[%- END %]
- <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
- <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
+ <tr style='display:none'>
+ <td>
+ <input type="hidden" name="fxgain_accno" value="[% fxgain_accno %]">
+ <input type="hidden" name="fxloss_accno" value="[% fxloss_accno %]">
+ </td>
+ </tr>
[%- IF show_exchangerate %]
<tr>
<th align="right">[% 'Exchangerate' | $T8 %]</th>
<tr>
<th align="right">[% 'Employee' | $T8 %]</th>
<td>
- [% L.select_tag('employee_id', L.options_for_select(ALL_EMPLOYEES, default=employee_id, title_sub=\sales_employee_labels)) %]
+ [% L.select_tag('employee_id', ALL_EMPLOYEES, default = employee_id, title_key = 'safe_name') %]
</td>
</tr>
[%- IF ALL_SALESMEN.size %]
<tr>
<th align="right">[% 'Salesman' | $T8 %]</th>
<td>
- [% L.select_tag('salesman_id', L.options_for_select(ALL_SALESMEN, default=(salesman_id ? salesman_id : employee_id), title_sub=\sales_employee_labels)) %]
+ [% L.select_tag('salesman_id', ALL_SALESMEN, default = (salesman_id ? salesman_id : employee_id), title_key = 'safe_name') %]
</td>
</tr>
[%- END %]
</tr>
<tr>
<th align="right">[% 'Credit Note Date' | $T8 %]</th>
- <td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate()') %]</td>
+ <td>[% L.date_tag('invdate', invdate, cal_align='BL', onchange='set_duedate()') %]</td>
</tr>
[%- ELSE %]
<tr>
</tr>
<tr>
<th align="right">[% 'Invoice Date' | $T8 %]</th>
- <td>[% L.date_tag('invdate', invdate, onBlur='check_right_date_format(this)', cal_align='BL', onChange='set_duedate()') %]</td>
+ <td>[% L.date_tag('invdate', invdate, cal_align='BL', onchange='set_duedate()') %]</td>
</tr>
<tr>
<th align="right">[% 'Due Date' | $T8 %]</th>
- <td>[% L.date_tag('duedate', duedate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
+ <td>[% L.date_tag('duedate', duedate, cal_align='BL') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Delivery Order Number' | $T8 %]</th>
</tr>
<tr>
<th align="right">[% 'Delivery Date' | $T8 %]</th>
- <td>[% L.date_tag('deliverydate', deliverydate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
+ <td>[% L.date_tag('deliverydate', deliverydate, cal_align='BL') %]</td>
</tr>
[%- END %]
</tr>
<tr>
<th align="right" nowrap>[% 'Order Date' | $T8 %]</th>
- <td>[% L.date_tag('orddate', orddate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
+ <td>[% L.date_tag('orddate', orddate, cal_align='BL') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Quotation Number' | $T8 %]</th>
</tr>
<tr>
<th align="right" nowrap>[% 'Quotation Date' | $T8 %]</th>
- <td>[% L.date_tag('quodate', quodate, onBlur='check_right_date_format(this)', cal_align='BL') %]</td>
+ <td>[% L.date_tag('quodate', quodate, cal_align='BL') %]</td>
</tr>
<tr>
<th align="right" nowrap>[% 'Customer Order Number' | $T8 %]</th>
<tr>
<th align="right" nowrap>[% 'Project Number' | $T8 %]</th>
<td>
- [%- L.select_tag('globalproject_id', L.options_for_select(ALL_PROJECTS, title='projectnumber', default=globalproject_id, with_empty='1'), onChange="document.getElementById('update_button').click();") %]
+ [%- L.select_tag('globalproject_id', ALL_PROJECTS, title_key = 'projectnumber', default = globalproject_id, with_empty = '1', onChange = "document.getElementById('update_button').click();") %]
</td>
</tr>
</table>
</td>
</tr>
-</table>
- </td>
- </tr>
- <tr>
+ <tr style='display:none'>
<td>
+ <input type="hidden" name="webdav" value="[% webdav %]">
</td>
</tr>
+</table>
+
<script type="text/javascript" src="js/show_form_details.js"></script>
<script type="text/javascript" src="js/show_vc_details.js"></script>
<script type="text/javascript" src="js/show_history.js"></script>
}
//-->
</script>
-
- <input type="hidden" name="webdav" value="[% webdav %]">
+<table width="100%">