<input type="hidden" name="[% HTML.escape(row.name) %]" value="[% HTML.escape(row.value) %]" >
[%- END %]
+ <input type="hidden" name="convert_from_oe_ids" value="[% HTML.escape(convert_from_oe_ids) %]">
+
<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) %]">
<th align="right">[% IF vc == 'customer' %]Kunde[% ELSE %]Lieferant[% END %]</th>
<td>
[%- INCLUDE 'generic/multibox.html'
- name = vc,
- style = 'width: 250px',
- DATA = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
- id_sub = 'vc_keys',
- label_key = 'name',
- select = vc_select,
- limit = vclimit,
- onChange = "document.getElementById('update_button').click();" -%]
+ name = vc,
+ style = 'width: 250px',
+ DATA = vc == 'customer' ? ALL_CUSTOMERS : ALL_VENDORS,
+ id_sub = 'vc_keys',
+ label_key = 'name',
+ select = vc_select,
+ limit = vclimit,
+ allow_textbox = 1,
+ onChange = "document.getElementById('update_button').click();" -%]
<input type="button" value="D" onclick="show_vc_details('[% HTML.escape(vc) %]')">
</td>
</tr>
label_key = 'description' -%]
</td>
</tr>
-[%- IF selectdepartment %]
+[%- IF ALL_DEPARTMENTS %]
<tr>
<th align="right" nowrap>Abteilung</th>
- <td colspan="3"><select name="department" style="width: 250px">[% selectdepartment %]</select>
- <input type="hidden" name="selectdepartment" value="[% HTML.escape(selectdepartment) %]">
+ <td colspan="3">
+ [%- INCLUDE 'generic/multibox.html'
+ name = 'department_id',
+ style = 'width: 250px',
+ DATA = ALL_DEPARTMENTS,
+ id_key = 'id',
+ label_sub = 'department_labels',
+ show_empty = 1 -%]
</td>
</tr>
[%- END %]
<th align="right">Wechselkurs</th>
<td>
[%- IF forex %]
- [% LxERP.format_amount(exchangerate, 0) %]
+ [% LxERP.format_amount(exchangerate, 2) %]
[%- ELSE %]
<input name="exchangerate" size="10" value="[% HTML.escape(LxERP.format_amount(exchangerate)) %]">
[%- END %]
</td>
</tr>
-[%- END %]
-[%- IF is_sales %]
- <tr>
- <th align="right">Motiv</th>
- <td style="font-weight:bold" colspan="3"><input name="motiv" size="35" value="[% HTML.escape(motiv) %]"></td>
- </tr>
[%- END %]
<tr>
<th align="right">Versandort</th>
Angebotsdatum
[%- END %]
</th>
- [% button1 %]
+ <td nowrap>
+ <input name=transdate id=transdate size=11 title="[% HTML.escape(dateformat) %]" value="[% transdate %]" onBlur="check_right_date_format(this)">
+ <input type=button name=transdate id="trigger1" value="?">
+ </td>
</tr>
<tr>
<th align="right" nowrap>
Lieferdatum
[%- END %]
</th>
- [% button2 %]
+ <td nowrap>
+ <input name=reqdate id=reqdate size=11 title="[% HTML.escape(dateformat) %]" value="[% reqdate %]" onBlur="check_right_date_format(this)">
+ <input type=button name=reqdate id="trigger2" value="?">
+ </td>
</tr>
<tr>
<th width="70%" align="right" nowrap>Projektnummer</th>
</td>
</tr>
- [% jsscript %]
+ <script type="text/javascript">
+ <!--
+ Calendar.setup({ inputField : "transdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger1" });
+ Calendar.setup({ inputField : "reqdate", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "trigger2" });
+ //-->
+ </script>