[% IF is_customer %]
   | [% 'Customer Number' | $T8 %] | 
   [% HTML.escape(customernumber) %] | 
  [% ELSE %]
   [% 'Vendor Number' | $T8 %] | 
   [% HTML.escape(vendornumber) %] | 
  [% END %]
  
  
   | [% 'Company Name' | $T8 %] | 
   [% HTML.escape(name) %] | 
  
  
   | [% 'Department' | $T8 %] | 
   [% HTML.escape(department_1) %][% IF department_2 %][% IF department_1 %]; [% END %][% HTML.escape(department_2) %][% END %] | 
  
  
   | [% 'Street' | $T8 %] | 
   [% HTML.escape(street) %] | 
  
  
   | [% 'Zip, City' | $T8 %] | 
   [% HTML.escape(zipcode) %] [% HTML.escape(city) %] | 
  
  
   | [% 'Country' | $T8 %] | 
   [% HTML.escape(country) %] | 
  
  
   | [% 'GLN' | $T8 %] | 
   [% HTML.escape(gln) %] | 
  
  
   | [% 'Contact Person' | $T8 %] | 
   [% IF greeting %][% HTML.escape(greeting) %] [% END %][% HTML.escape(contact) %] | 
  
  
   | [% 'Phone' | $T8 %] | 
   [% HTML.escape(phone) %] | 
  
  
   | [% 'Fax' | $T8 %] | 
   [% HTML.escape(fax) %] | 
  
  
   | [% 'E-mail' | $T8 %] | 
   [% HTML.escape(email) %] | 
  
  
   | [% 'Homepage' | $T8 %] | 
   [% HTML.escape(homepage) %] | 
  
  
   | [% 'Credit Limit' | $T8 %] | 
   [% HTML.escape(creditlimit) %] | 
  
  
   | [% 'Discount' | $T8 %] | 
   [% HTML.escape(discount_as_percent) %]% | 
  
  [% IF is_customer %]
  
   | [% 'Pricegroup' | $T8 %] | 
   [% HTML.escape(pricegroup) %] | 
  
  [% END %]
  
   | [% 'Payment Terms' | $T8 %] | 
   [% HTML.escape(payment_terms) %] | 
  
  
   | [% 'Delivery Terms' | $T8 %] | 
   [% HTML.escape(delivery_terms) %] | 
  
  
   | [% 'Tax Number' | $T8 %] | 
   [% HTML.escape(taxnumber) %] | 
  
  
   | [% 'USt-IdNr.' | $T8 %] | 
   [% HTML.escape(ustid) %] | 
  
  [% IF is_customer %]
   
    | [% 'KNr. beim Kunden' | $T8 %] | 
    [% HTML.escape(c_vendor_id) %] | 
   
  [% END %]
  
   | [% 'Account Number' | $T8 %] | 
   [% HTML.escape(account_number) %] | 
  
  
   | [% 'Bank Code' | $T8 %] | 
   [% HTML.escape(bank_code) %] | 
  
  
   | [% 'Bank' | $T8 %] | 
   [% HTML.escape(bank) %] | 
  
  
   | [% 'IBAN' | $T8 %] | 
   [% HTML.escape(iban) %] | 
  
  
   | [% 'BIC' | $T8 %] | 
   [% HTML.escape(bic) %] | 
  
  
   | [% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %] | 
   [% HTML.escape(business) %] | 
  
  
   | [% 'Language' | $T8 %] | 
   [% HTML.escape(language) %] | 
  
  
   | [% 'Notes' | $T8 %] | 
   [% HTML.escape(notes) %] | 
  
 
 [% FOREACH row = SHIPTO %]
  
   
    | [% 'Company Name' | $T8 %] | 
    [% HTML.escape(row.shiptoname) %] | 
   
   
    | [% 'Department' | $T8 %] | 
    [% HTML.escape(row.shiptodepartment_1) %][% IF row.shiptodepartment_2 %][% IF row.shiptodepartment_1 %]; [% END %][% HTML.escape(row.shiptodepartment_2) %][% END %] | 
   
   
    | [% 'Street' | $T8 %] | 
    [% HTML.escape(row.shiptostreet) %] | 
   
   
    | [% 'Zip, City' | $T8 %] | 
    [% HTML.escape(row.shiptozipcode) %] [% HTML.escape(row.shiptocity) %] | 
   
   
    | [% 'Country' | $T8 %] | 
    [% HTML.escape(row.shiptocountry) %] | 
   
   
    | [% 'GLN' | $T8 %] | 
    [% HTML.escape(row.shiptogln) %] | 
   
   
    | [% 'Contact Person' | $T8 %] | 
    [% HTML.escape(row.shiptocontact) %] | 
   
   
    | [% 'Phone' | $T8 %] | 
    [% HTML.escape(row.shiptophone) %] | 
   
   
    | [% 'Fax' | $T8 %] | 
    [% HTML.escape(row.shiptofax) %] | 
   
   
    | [% 'E-mail' | $T8 %] | 
    [% HTML.escape(row.shiptoemail) %] | 
   
  
 [% END %]
 [% FOREACH row = CONTACTS %]
  
   
    | [% 'Greeting' | $T8 %] | 
    [% HTML.escape(row.cp_greeting) %] | 
   
   
    | [% 'Title' | $T8 %] | 
    [% HTML.escape(row.cp_title) %] | 
   
   
    | [% 'Given Name' | $T8 %] | 
    [% HTML.escape(row.cp_givenname) %] | 
   
   
    | [% 'Name' | $T8 %] | 
    [% HTML.escape(row.cp_name) %] | 
   
   
    | [% 'Department' | $T8 %] | 
    [% HTML.escape(row.cp_abteilung) %] | 
   
   
    | [% 'Phone1' | $T8 %] | 
    [% HTML.escape(row.cp_phone1) %] | 
   
   
    | [% 'Phone2' | $T8 %] | 
    [% HTML.escape(row.cp_phone2) %] | 
   
   
    | [% 'Fax' | $T8 %] | 
    [% HTML.escape(row.cp_fax) %] | 
   
   
    | [% 'Mobile1' | $T8 %] | 
    [% HTML.escape(row.cp_mobile1) %] | 
   
   
    | [% 'Mobile2' | $T8 %] | 
    [% HTML.escape(row.cp_mobile2) %] | 
   
   
    | [% 'Sat. Phone' | $T8 %] | 
    [% HTML.escape(row.cp_satphone) %] | 
   
   
    | [% 'Sat. Fax' | $T8 %] | 
    [% HTML.escape(row.cp_satfax) %] | 
   
   
    | [% 'Project' | $T8 %] | 
    [% HTML.escape(row.cp_project) %] | 
   
   
    | [% 'E-mail' | $T8 %] | 
    [% HTML.escape(row.cp_email) %] | 
   
   
    | [% 'Private Phone' | $T8 %] | 
    [% HTML.escape(row.cp_privatphone) %] | 
   
   
    | [% 'Private E-mail' | $T8 %] | 
    [% HTML.escape(row.cp_privatemail) %] | 
   
   
    | [% 'Birthday' | $T8 %] | 
    [% HTML.escape(row.cp_birthday) %] | 
   
  
 [% END %]