11 [% IF ( conf_vertreter ) %]
14 [% IF SELF.is_vendor() %]
15 [% 'Type of Vendor' | $T8 %]
17 [% 'Type of Customer' | $T8 %]
22 [% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
28 [% 'Representative' | $T8 %]
32 [% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'name', with_empty = 1) %]
39 [% IF SELF.is_vendor() %]
40 <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
42 [% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %]
45 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
47 [% L.input_tag('cv.customernumber', SELF.cv.customernumber) %]
53 <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
56 [% L.input_tag('cv.greeting', SELF.cv.greeting) %]
57 [% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
62 <th align="right" nowrap>
63 [% IF SELF.is_vendor() %]
64 [% 'Vendor Name' | $T8 %]
66 [% 'Customer Name' | $T8 %]
71 [% L.input_tag('cv.name', SELF.cv.name) %]
76 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
79 [% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16, maxlength = 75) %]
80 [% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16, maxlength = 75) %]
85 <th align="right" nowrap>[% 'Street' | $T8 %]</th>
88 [% L.input_tag('cv.street', SELF.cv.street, size = 35, maxlength = 75) %]
89 <span id="billing_map"></span>
90 <script type="text/javascript">
91 namespace('kivi.CustomerVendor').showMapWidget('cv_', $('#billing_map'));
97 <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
100 [% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5 maxlength = 10) %]
101 [% L.input_tag('cv.city', SELF.cv.city, size = 30 maxlength = 75) %]
106 <th align="right" nowrap>[% 'Country' | $T8 %]</th>
109 [% L.input_tag('cv.country', SELF.cv.country, size = 30 maxlength = 75) %]
114 <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
117 [% L.input_tag('cv.contact', SELF.cv.contact, size = 28 maxlength = 75) %]
122 <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
125 [% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
130 <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
133 [% L.input_tag('cv.fax', SELF.cv.fax, size = 30 maxlength = 30) %]
138 <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
141 [% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
146 <th align="right">[% 'Cc E-mail' | $T8 %]</th>
149 [% L.input_tag('cv.cc', SELF.cv.bcc, size = 45) %]
154 <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
157 [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
162 <th align="right" nowrap>
164 <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
166 [% 'Homepage' | $T8 %]
171 [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
176 <th align="right" nowrap>[% 'Username' | $T8 %]</th>
179 [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
184 <th align="right" nowrap>[% 'Password' | $T8 %]</th>
187 [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
196 <th align="right">[% 'Credit Limit' | $T8 %]</th>
199 [% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
203 <th align="right">[% 'Payment Terms' | $T8 %]</th>
206 [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
210 <th align="right">[% 'Discount' | $T8 %]</th>
213 [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]
218 <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
221 [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
225 <!-- Anm.: R&B 15.11.2008 VAT Reg No ist Ust-ID in GB, aber generell sollte es laut Richardson die sales tax id sein -->
226 <th align="right">[% 'sales tax identification number' | $T8 %]</th>
229 [% L.input_tag('cv.ustid', SELF.cv.ustid, maxlength = 14 size = 20 ) %]
233 [%- IF ( SELF.is_vendor() ) %]
234 <th align="right">[% 'Customer Number' | $T8 %]</th>
236 [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
239 <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
241 [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
247 <th align="right">[% 'Account Number' | $T8 %]</th>
250 [% L.input_tag('cv.account_number', SELF.cv.account_number, size = 10, maxlength = 100) %]
254 <th align="right">[% 'Bank Code Number' | $T8 %]</th>
257 [% L.input_tag('cv.bank_code', SELF.cv.bank_code, size = 10, maxlength = 100) %]
261 <th align="right">[% 'Bank' | $T8 %]</th>
264 [% L.input_tag('cv.bank', SELF.cv.bank, size = 20) %]
269 <th align="right">[% 'IBAN' | $T8 %]</th>
272 [% L.input_tag('cv.iban', SELF.cv.iban, size = 10, maxlength = 100) %]
276 <th align="right">[% 'BIC' | $T8 %]</th>
278 [% L.input_tag('cv.bic', SELF.cv.bic, size = 10, maxlength = 100) %]
282 [% IF ( SELF.all_currencies.size ) %]
283 <th align="right">[% 'Currency' | $T8 %]</th>
286 [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id, with_empty = 1) %]
292 [% IF ( !conf_vertreter ) %]
294 [% IF ( SELF.is_vendor() ) %]
295 [% 'Type of Vendor' | $T8 %]
297 [% 'Type of Customer' | $T8 %]
302 [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
307 <th align="right">[% 'Language' | $T8 %]</th>
310 [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
313 [% IF ( SELF.is_customer() ) %]
314 <th align="right">[% 'Preisklasse' | $T8 %]</th>
317 [% L.select_tag('cv.klass', SELF.all_pricegroups, default = SELF.cv.klass, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
324 <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
328 [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete) %]
333 <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
337 [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit) %]
342 <th align="right">[% 'Steuersatz' | $T8 %]</th>
345 [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
349 [% IF ( SELF.is_customer() && !conf_vertreter ) %]
350 <th align="right">[% 'Salesman' | $T8 %]</th>
353 [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
357 <td>[% 'taxincluded checked' | $T8 %]</td>
360 [% 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) %]
368 <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
373 [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]