-[% USE HTML %][% USE LxERP %]<body onLoad="fokus()">
+[% USE HTML %][% USE LxERP %]
+<body onLoad="fokus()">
<div class="listtop">[% title %]</div>
<table width="100%">
<tr height="5"></tr>
+ [% IF conf_vertreter %]
+ <tr>
+ <th align="right">[% IF is_customer %]Kundentyp[%- ELSE %]Lieferantentyp[%- END %]</th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'business',
+ DATA = all_business,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+ <tr>
+ <th align="right">Vertreter</th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'salesman_id',
+ DATA = ALL_SALESMAN_BUSINESSES,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ </tr>
+ [%- END %]
<tr>
[%- IF is_customer %]
<th align="right" nowrap>Kundennummer</th>
</tr>
<tr>
- <th align="right" nowrap>Firmenname</th>
+ <th align="right" nowrap>[% IF is_customer %]Kundenname[%- ELSE %]Lieferantenname[%- END %]</th>
<td><input name="name" size="35" maxlength="75" value="[% HTML.escape(name) %]"></td>
</tr>
<td><input name="bic" size="10" maxlength="100" value="[% HTML.escape(bic) %]"></td>
</tr>
+ [%- IF conf_vertreter %]
+ <tr>
+ <th align="right">Benutzername</th>
+ <td><input name="username" maxlength="50" value="[% HTML.escape(username) %]"></td>
+ <th align="right">Passwort</th>
+ <td><input name="user_password" value="[% HTML.escape(user_password) %]"></td>
+ </tr>
+ [%- END %]
+
<tr>
- <th align="right">Kunden-/Lieferantentyp</th>
- <td>
- [%- INCLUDE generic/multibox.html
- name = 'business',
- DATA = all_business,
- show_empty = 1,
- id_key = 'id',
- label_key = 'description',
- -%]
- </td>
+ [% UNLESS conf_vertreter %]
+ <th align="right">[% IF is_customer %]Kundentyp[% ELSE %]Lieferantentyp[%- END %]</th>
+ <td>
+ [%- INCLUDE generic/multibox.html
+ name = 'business',
+ DATA = all_business,
+ show_empty = 1,
+ id_key = 'id',
+ label_key = 'description',
+ -%]
+ </td>
+ [%- END %]
<th align="right">Sprache</th>
<td>
[%- INCLUDE generic/multibox.html
label_key = 'description',
-%]
</td>
- [%- IF is_customer %]
+ [%- IF is_customer && !use_vertreter %]
<th align="right">Verkäufer/in</th>
<td>
[%- INCLUDE generic/multibox.html