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>