<tr height="5"></tr>
- [% IF ( conf_vertreter ) %]
+ [% IF ( INSTANCE_CONF.get_vertreter ) %]
<tr>
<th align="right">
[% IF SELF.is_vendor() %]
<th align="right" nowrap>[% 'Street' | $T8 %]</th>
<td>
- [% L.input_tag('cv.street', SELF.cv.street) %]
+ [% L.input_tag('cv.street', SELF.cv.street, size = 35, maxlength = 75) %]
<span id="billing_map"></span>
<script type="text/javascript">
- namespace('kivi.CustomerVendor').showMapWidget('cv_', $('#billing_map'));
+ billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_');
+ $(function() {
+ billingMapWidget.render($('#billing_map'));
+ });
</script>
</td>
</tr>
</td>
</tr>
+ <tr>
+ <th align="right">[% 'Cc E-mail' | $T8 %]</th>
+
+ <td>
+ [% L.input_tag('cv.cc', SELF.cv.cc, size = 45) %]
+ </td>
+ </tr>
+
+ <tr>
+ <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
+
+ <td>
+ [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
+ </td>
+ </tr>
+
<tr>
<th align="right" nowrap>
[% IF homepage %]
<th align="right">[% 'Discount' | $T8 %]</th>
<td>
- [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]
+ [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
</td>
</tr>
[%- END %]
</tr>
+ [% IF ( SELF.all_currencies.size ) %]
<tr>
- <th align="right">[% 'Account Number' | $T8 %]</th>
-
- <td>
- [% L.input_tag('cv.account_number', SELF.cv.account_number, size = 10, maxlength = 100) %]
- </td>
-
-
- <th align="right">[% 'Bank Code Number' | $T8 %]</th>
-
- <td>
- [% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 10, maxlength = 100) %]
- </td>
-
-
- <th align="right">[% 'Bank' | $T8 %]</th>
-
- <td>
- [% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
- </td>
- </tr>
-
- <tr>
- <th align="right">[% 'IBAN' | $T8 %]</th>
-
- <td>
- [% L.input_tag('cv.iban', SELF.cv.iban, size = 10, maxlength = 100) %]
- </td>
-
-
- <th align="right">[% 'BIC' | $T8 %]</th>
- <td>
- [% L.input_tag('cv.bic', SELF.cv.bic, size = 10, maxlength = 100) %]
- </td>
-
-
- [% IF ( SELF.all_currencies.size ) %]
<th align="right">[% 'Currency' | $T8 %]</th>
<td>
- [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, with_empty = 1) %]
+ [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
</td>
- [% END %]
</tr>
+ [% END %]
<tr>
- [% IF ( !conf_vertreter ) %]
+ [% IF ( !INSTANCE_CONF.get_vertreter ) %]
<th align="right">
[% IF ( SELF.is_vendor() ) %]
[% 'Type of Vendor' | $T8 %]
[% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
</td>
-
- <th align="right">[% 'Bcc' | $T8 %]</th>
+ <th align="right">[% 'Delivery Terms' | $T8 %]</th>
<td>
- [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 40) %]
+ [% L.select_tag('cv.delivery_term_id', SELF.all_delivery_terms, default = SELF.cv.delivery_term_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
</td>
-
- [% IF ( SELF.is_customer() ) %]
- <th align="right">[% 'Preisklasse' | $T8 %]</th>
-
- <td>
- [% L.select_tag('cv.klass', SELF.all_pricegroups, default = SELF.cv.klass, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
- </td>
- [% END %]
</tr>
<tr>
</td>
<td>
- [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete) %]
+ [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
</td>
</td>
<td>
- [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit) %]
+ [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
</td>
+
+ [% IF ( SELF.is_customer() ) %]
+ <th align="right">[% 'Preisklasse' | $T8 %]</th>
+
+ <td>
+ [% L.select_tag('cv.klass', SELF.all_pricegroups, default = SELF.cv.klass, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
+ </td>
+ [% END %]
+
</tr>
<tr>
</td>
- [% IF ( SELF.is_customer() && !conf_vertreter ) %]
+ [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
<th align="right">[% 'Salesman' | $T8 %]</th>
<td>
</td>
[%- END %]
- <td>[% 'taxincluded checked' | $T8 %]</td>
+ [% IF ( SELF.is_customer() ) %]
+ <td>[% 'taxincluded checked' | $T8 %]</td>
- <td>
- [% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %]
- </td>
+ <td>
+ [% L.select_tag('cv.taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = SELF.cv.taxincluded_checked) %]
+ </td>
+ [% END %]
</tr>
</table>