12 [% IF ( INSTANCE_CONF.get_vertreter ) %]
15 [% IF SELF.is_vendor() %]
16 [% 'Type of Vendor' | $T8 %]
18 [% 'Type of Customer' | $T8 %]
23 [% L.select_tag('cv.business_id', SELF.all_business, value_key = 'id', title_key = 'description', default = SELF.cv.business_id, with_empty = 1) %]
29 [% 'Representative' | $T8 %]
33 [% L.select_tag('cv.salesman_id', SELF.all_salesman_customers, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'name', with_empty = 1) %]
40 [% IF SELF.is_vendor() %]
41 <th align="right" nowrap>[% 'Vendor Number' | $T8 %]</th>
43 [% L.input_tag('cv.vendornumber', SELF.cv.vendornumber) %]
46 <th align="right" nowrap>[% 'Customer Number' | $T8 %]</th>
48 [% L.input_tag('cv.customernumber', SELF.cv.customernumber) %]
54 <th align="right" nowrap>[% 'Greeting' | $T8 %]</th>
57 [%- IF INSTANCE_CONF.get_vc_greetings_use_textfield -%]
58 [% L.input_tag('cv.greeting', SELF.cv.greeting) %]
59 [% L.select_tag('cv_greeting_select', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1, onchange = '$("#cv_greeting").val(this.value);') %]
61 [% L.select_tag('cv.greeting', SELF.all_greetings, default = SELF.cv.greeting, value_key = 'description', title_key = 'description', with_empty = 1) %]
67 <th align="right" nowrap>
68 [% IF SELF.is_vendor() %]
69 [% 'Vendor Name' | $T8 %]
71 [% 'Customer Name' | $T8 %]
76 [% L.input_tag('cv.name', SELF.cv.name) %]
77 <label for="cv_natural_person">[% 'natural person' | $T8 %]</label>
78 [% L.checkbox_tag('cv.natural_person', checked = SELF.cv.natural_person, for_submit=1) %]
83 <th align="right" nowrap>[% 'Department' | $T8 %]</th>
86 [% L.input_tag('cv.department_1', SELF.cv.department_1, size = 16) %]
87 [% L.input_tag('cv.department_2', SELF.cv.department_2, size = 16) %]
92 <th align="right" nowrap>[% 'Street' | $T8 %]</th>
95 [% L.input_tag('cv.street', SELF.cv.street, size = 35) %]
96 <span id="billing_map"></span>
97 <script type="text/javascript">
98 billingMapWidget = new kivi.CustomerVendor.MapWidget('cv_', '[% JavaScript.escape(SELF.home_address_for_google_maps) %]');
100 billingMapWidget.render($('#billing_map'));
107 <th align="right" nowrap>[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]</th>
110 [% L.input_tag('cv.zipcode', SELF.cv.zipcode, size = 5) %]
111 [% L.input_tag('cv.city', SELF.cv.city, size = 30) %]
116 <th align="right" nowrap>[% 'Country' | $T8 %]</th>
119 [% L.input_tag('cv.country', SELF.cv.country, size = 30) %]
124 <th align="right" nowrap>[% 'GLN' | $T8 %]</th>
127 [% L.input_tag('cv.gln', SELF.cv.gln, size = 30) %]
132 <th align="right" nowrap>[% 'Contact' | $T8 %]</th>
135 [% L.input_tag('cv.contact', SELF.cv.contact, size = 28) %]
140 <th align="right" nowrap>[% 'Phone' | $T8 %]</th>
143 [% L.input_tag('cv.phone', SELF.cv.phone, size = 30) %]
148 <th align="right" nowrap>[% 'Fax' | $T8 %]</th>
151 [% L.input_tag('cv.fax', SELF.cv.fax, size = 30) %]
156 <th align="right" nowrap>[% 'E-mail' | $T8 %]</th>
159 [% L.input_tag('cv.email', SELF.cv.email, size = 45) %]
164 <th align="right">[% 'Cc E-mail' | $T8 %]</th>
167 [% L.input_tag('cv.cc', SELF.cv.cc, size = 45) %]
172 <th align="right">[% 'Bcc E-mail' | $T8 %]</th>
175 [% L.input_tag('cv.bcc', SELF.cv.bcc, size = 45) %]
178 [% IF ( SELF.is_customer() ) %]
180 <th align="right">[% 'Email of the invoice recipient' | $T8 %]</th>
181 <td>[% L.input_tag('cv.invoice_mail', SELF.cv.invoice_mail, size = 45) %]</td>
184 <th align="right">[% 'Email of the delivery order recipient' | $T8 %]</th>
185 <td>[% L.input_tag('cv.delivery_order_mail', SELF.cv.delivery_order_mail, size = 45) %]</td>
189 <th align="right" nowrap>
190 [% IF SELF.cv.homepage %]
191 <a href="[% HTML.escape(SELF.cv.homepage) %]" title="[% 'Open this Website' | $T8 %]" target="_blank">[% 'Homepage' | $T8 %]</a>
193 [% 'Homepage' | $T8 %]
198 [% L.input_tag('cv.homepage', SELF.cv.homepage, size = 45, title = LxERP.t8('Example: http://kivitendo.de')) %]
203 <th align="right" nowrap>[% 'Username' | $T8 %]</th>
206 [% L.input_tag('cv.username', SELF.cv.username, size = 45) %]
211 <th align="right" nowrap>[% 'Password' | $T8 %]</th>
214 [% L.input_tag('cv.user_password', SELF.cv.user_password, size = 45) %]
223 <th align="right">[% 'Credit Limit' | $T8 %]</th>
226 [% L.input_tag('cv.creditlimit_as_number', SELF.cv.creditlimit_as_number, size = 9) %]
230 <th align="right">[% 'Payment Terms' | $T8 %]</th>
233 [% L.select_tag('cv.payment_id', SELF.all_payment_terms, value_key = 'id', title_key = 'description', default = SELF.cv.payment_id, with_empty = 1) %]
237 <th align="right">[% 'Discount' | $T8 %]</th>
240 [% L.input_tag('cv.discount_as_percent', SELF.cv.discount_as_percent, size = 4) %]%
245 <th align="right">[% 'Tax Number / SSN' | $T8 %]</th>
248 [% L.input_tag('cv.taxnumber', SELF.cv.taxnumber, size = 20) %]
252 <!-- 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 -->
253 <th align="right">[% 'sales tax identification number' | $T8 %]</th>
256 [% L.input_tag('cv.ustid', SELF.cv.ustid, size = 20 ) %]
260 [%- IF ( SELF.is_vendor() ) %]
261 <th align="right">[% 'Customer Number' | $T8 %]</th>
263 [% L.input_tag('cv.v_customer_id', SELF.cv.v_customer_id, size = 10) %]
266 <th align="right">[% 'our vendor number at customer' | $T8 %]</th>
268 [% L.input_tag('cv.c_vendor_id', SELF.cv.c_vendor_id, size = 10) %]
274 [% IF ( SELF.is_customer() ) %]
275 <th align="right">[% 'Commercial court' | $T8 %]</th>
277 [% L.input_tag('cv.commercial_court', SELF.cv.commercial_court, size = 20) %]
280 [% IF ( SELF.all_currencies.size ) %]
281 <th align="right">[% 'Currency' | $T8 %]</th>
283 [% L.select_tag('cv.currency_id', SELF.all_currencies, title_key = 'name', value_key = 'id', default = SELF.cv.currency_id) %]
288 [% IF ( !INSTANCE_CONF.get_vertreter ) %]
290 [% IF ( SELF.is_vendor() ) %]
291 [% 'Type of Vendor' | $T8 %]
293 [% 'Type of Customer' | $T8 %]
298 [% L.select_tag('cv.business_id', SELF.all_business, default = SELF.cv.business_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
303 <th align="right">[% 'Language' | $T8 %]</th>
306 [% L.select_tag('cv.language_id', SELF.all_languages, default = SELF.cv.language_id, value_key = 'id', title_key = 'description', with_empty = 1) %]
309 <th align="right">[% 'Delivery Terms' | $T8 %]</th>
312 [% 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) %]
319 <label for="cv_obsolete">[% 'Obsolete' | $T8 %]</label>
323 [% L.checkbox_tag('cv.obsolete', checked = SELF.cv.obsolete, for_submit=1) %]
328 <label for="cv_direct_debit">[% 'direct debit' | $T8 %]</label>
332 [% L.checkbox_tag('cv.direct_debit', checked = SELF.cv.direct_debit, for_submit=1) %]
335 [% IF ( SELF.is_customer() ) %]
336 <th align="right">[% 'Price group' | $T8 %]</th>
339 [% L.select_tag('cv.pricegroup_id', SELF.all_pricegroups, default = SELF.cv.pricegroup_id, value_key = 'id', title_key = 'pricegroup', with_empty = 1) %]
346 <th align="right">[% 'Tax rate' | $T8 %]</th>
349 [% L.select_tag('cv.taxzone_id', SELF.all_taxzones, default = SELF.cv.taxzone_id, value_key = 'id', title_key = 'description') %]
353 [% IF ( SELF.is_customer() && !INSTANCE_CONF.get_vertreter ) %]
354 <th align="right">[% 'Salesman' | $T8 %]</th>
357 [% L.select_tag('cv.salesman_id', SELF.all_salesmen, default = SELF.cv.salesman_id, value_key = 'id', title_key = 'safe_name', with_empty = 1) %]
361 [% IF ( SELF.is_customer() ) %]
362 <td>[% 'taxincluded checked' | $T8 %]</td>
365 [% 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) %]
371 [% IF ( SELF.is_customer() ) %]
373 <th align="right">[%- LxERP.t8("Hourly rate") %]</th>
374 <td>[% L.input_tag("cv.hourly_rate_as_number", SELF.cv.hourly_rate_as_number) %]</td>
375 <th align="right" valign="top" nowrap>[% 'Shoporderlock' | $T8 %]</th>
377 [% L.checkbox_tag('cv.order_lock', checked = SELF.cv.order_lock, for_submit=1) %]
379 <th align="right">[% LxERP.t8("Create sales invoices with ZUGFeRD data") %]</th>
380 <td>[% L.select_tag("cv.create_zugferd_invoices",
381 [ [ -1, LxERP.t8('Use settings from client configuration') ],
382 [ 0, LxERP.t8('Do not create ZUGFeRD invoices') ],
383 [ 1, LxERP.t8('Create ZUGFeRD invoices') ],
384 [ 2, LxERP.t8('Create ZUGFeRD invoices in test mode') ] ],
385 default=SELF.cv.create_zugferd_invoices) %]</td>
392 <th align="left" nowrap>[% 'Internal Notes' | $T8 %]</th>
393 [% IF ( SELF.is_customer() ) %]
394 <th align="left">[% 'Origin of personal data' | $T8 %]</th>
399 [% L.textarea_tag('cv.notes', SELF.cv.notes, rows = 3 cols = 60 wrap = soft) %]
401 [% IF ( SELF.is_customer() ) %]
403 [% L.textarea_tag('cv.contact_origin', SELF.cv.contact_origin, rows = 3 cols = 60 wrap = soft) %]