[%- USE T8 %] [% USE HTML %][% USE LxERP %] [% USE L %]

[% title %]

[% PROCESS 'common/flash.html' %]
[% IF conf_vertreter %] [%- IF id %] [%- END %] [%- END %] [%- IF is_customer %] [%- ELSE %] [%- END %]
[% IF is_customer %][% 'Type of Customer' | $T8 %][%- ELSE %][% 'Type of Vendor' | $T8 %][%- END %] [%- INCLUDE generic/multibox.html name = 'business', DATA = all_business, show_empty = 1, id_key = 'id', label_key = 'description', -%]
[% 'Representative' | $T8 %] [%- HTML.escape(salesman) %]
[%- IF !id %] [% 'Representative' | $T8 %] [%- ELSE %] [% 'Change representative to' | $T8 %] [%- END %] [%- INCLUDE generic/multibox.html name = 'new_salesman_id', DATA = ALL_SALESMAN_CUSTOMERS, id_key = 'id', label_key = 'name', show_empty = id, -%]
[% 'Customer Number' | $T8 %] [% 'Vendor Number' | $T8 %]
[% 'Greeting' | $T8 %]   [%- INCLUDE generic/multibox.html name = 'selected_company_greeting', DATA = MB_COMPANY_GREETINGS, show_empty = 1, id_key = 'id', label_key = 'description', -%]
[% IF is_customer %][% 'Customer Name' | $T8 %][%- ELSE %][% 'Vendor Name' | $T8 %][%- END %]
[% 'Department' | $T8 %]
[% 'Street' | $T8 %]
[% 'Zipcode' | $T8 %]/[% 'City' | $T8 %]
[% 'Country' | $T8 %]
[% 'Contact' | $T8 %]
[% 'Phone' | $T8 %]
[% 'Fax' | $T8 %]
[% 'E-mail' | $T8 %]
[% IF homepage %][% 'Homepage' | $T8 %] [% ELSE %][% 'Homepage' | $T8 %] [% END %]
[% 'Username' | $T8 %]
[% 'Password' | $T8 %]
[%- IF is_customer %] [%- ELSE %] [%- END %] [%- IF ALL_CURRENCIES.size %] [%- END %] [% UNLESS conf_vertreter %] [%- END %] [%- IF is_customer %] [%- END %] [%- IF is_customer && !conf_vertreter %] [%- END %]
[% 'Credit Limit' | $T8 %] [% 'Payment Terms' | $T8 %] [%- INCLUDE generic/multibox.html name = 'payment_id', DATA = payment_terms, show_empty = 1, id_key = 'id', label_key = 'description', -%] [% 'Discount' | $T8 %] %
[% 'Tax Number / SSN' | $T8 %] [% 'sales tax identification number' | $T8 %] [% 'our vendor number at customer' | $T8 %] [% 'Customer Number' | $T8 %]
[% 'Account Number' | $T8 %] [% 'Bank Code Number' | $T8 %] [% 'Bank' | $T8 %]
[% 'IBAN' | $T8 %] [% 'BIC' | $T8 %] [% 'Currency' | $T8 %] [% L.select_tag('currency', ALL_CURRENCIES, default = currency, with_empty = 1) %]
[% IF is_customer %][% 'Type of Customer' | $T8 %][% ELSE %][% 'Type of Vendor' | $T8 %][%- END %] [%- INCLUDE generic/multibox.html name = 'business', DATA = all_business, show_empty = 1, id_key = 'id', label_key = 'description', -%] [% 'Language' | $T8 %] [%- INCLUDE generic/multibox.html name = 'language_id', default = default_language_id, DATA = languages, show_empty = 1, id_key = 'id', label_key = 'description', -%] [% 'Preisklasse' | $T8 %] [%- INCLUDE generic/multibox.html name = 'klass', DATA = all_pricegroup, show_empty = 1, id_key = 'id', label_key = 'pricegroup', -%]
[% 'Obsolete' | $T8 %] [% 'direct debit' | $T8 %]
[% 'Steuersatz' | $T8 %] [%- INCLUDE generic/multibox.html name = 'taxzone_id', id = 'taxzone_id', DATA = ALL_TAXZONES, show_empty = 0, id_key = 'id', label_key = 'description', -%] [% 'Salesman' | $T8 %] [% L.select_tag('salesman_id', ALL_SALESMEN, default = salesman_id, with_empty = 1, title_key = 'safe_name') %]
[% 'taxincluded checked' | $T8 %] [% L.select_tag('taxincluded_checked', [[undef, LxERP.t8('use user config')], ['1', LxERP.t8('Yes')], ['0', LxERP.t8('No')]], default = taxincluded_checked) %]
[% 'Internal Notes' | $T8 %]

[% INCLUDE 'ct/_shipto.html' %]
[% INCLUDE 'ct/_contact.html' %]
[% 'Shipping Address' | $T8 %] [% L.select_tag('delivery_id', SHIPTO_ALL, title_sub = \shipto_label, with_empty = 1, onchange = "\$('#delivery').load('ct.pl?action=get_delivery&id=' + \$('#cvid').attr('value') + '&db=' + \$('#db').attr('value') + '&shipto_id=' + this.value)") %]
[% 'From' | $T8 %] [% L.date_tag('from', from, onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())") %] [% 'To (time)' | $T8 %] [% L.date_tag('to', to, onchange => "\$('#delivery').load('ct.pl?action=get_delivery&shipto_id='+ \$('#delivery_id').val() +'&from='+ \$('#from').val() +'&to='+ \$('#to').val() +'&id='+ \$('#cvid').val() +'&db='+ \$('#db').val())") %]

[%- IF NOTES && NOTES.size %]

[%- FOREACH row = NOTES %] [%- END %]
[% 'Delete' | $T8 %] [% 'Subject' | $T8 %] [% 'Created on' | $T8 %] [% 'Created by' | $T8 %] [% 'Follow-Up Date' | $T8 %] [% 'Follow-Up for' | $T8 %] [% 'Follow-Up done' | $T8 %]
[% UNLESS NOTE_id && (NOTE_id == row.id) %][% END %] [% HTML.escape(row.subject) %] [% HTML.escape(row.created_on) %] [% IF row.created_by_name %][% HTML.escape(row.created_by_name) %][% ELSE %][% HTML.escape(row.created_by_login) %][% END %] [% HTML.escape(row.follow_up_date) %] [% IF row.created_for_name %][% HTML.escape(row.created_for_name) %][% ELSE %][% HTML.escape(row.created_for_login) %][% END %] [% IF row.follow_up_date %][% IF row.follow_up_done %][% 'Yes' | $T8 %][% ELSE %][% 'No' | $T8 %][% END %][% END %]

[%- END %]
[% IF NOTE_id %][% 'Edit note' | $T8 %][% ELSE %][% 'Add note' | $T8 %][% END %]

[% 'Subject' | $T8 %]
[% 'Body' | $T8 %]
[% 'Follow-Up On' | $T8 %] [% L.date_tag('FU_date', FU_date) %] [% 'for' | $T8 %] [% L.select_tag('FU_created_for_user', ALL_EMPLOYEES, default = (FU_created_for_user ? FU_created_for_user : USER.id), title_key='safe_name') %]
 


[%- IF CUSTOM_VARIABLES.CT.size %]

[%- FOREACH var = CUSTOM_VARIABLES.CT %] [%- END %]
[% HTML.escape(var.description) %] [% var.HTML_CODE %]


[%- END %]