2 [% USE HTML %][%- USE LxERP -%]
 
   3 <h1>[% IF is_customer %][% 'Customer details' | $T8 %][% ELSE %][% 'Vendor details' | $T8 %][% END %] "[% HTML.escape(name) %]"</h1>
 
   6 [%- IF SHIPTO.size || CONTACTS.size %]
 
   8   [% 'Jump to' | $T8 %] <a href="#billing">[% 'Billing Address' | $T8 %]</a>
 
   9   [%- FOREACH additional_billing_addresses = ADDITIONAL_BILLING_ADDRESSES %]
 
  11    <a href="#additional_billing_address[% loop.count %]">
 
  12     [% 'Additional Billing Address' | $T8 %]
 
  13     "[% HTML.escape(additional_billing_addresses.name) %]"
 
  16   [%- FOREACH shipto = SHIPTO %]
 
  18    <a href="#shipping[% loop.count %]">
 
  19     [% 'Shipping Address' | $T8 %]
 
  20     "[% HTML.escape(shipto.shiptoname) %]"
 
  23   [%- FOREACH contact = CONTACTS %]
 
  25    <a href="#contact[% loop.count %]">
 
  26     [% 'Contact Person' | $T8 %]
 
  27     "[% HTML.escape(contact.cp_name) %]"
 
  36  [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO, ADDITIONAL_BILLING_ADDRESSES = ADDITIONAL_BILLING_ADDRESSES %]
 
  38  <a name="billing"><h1>[% 'Billing Address' | $T8 %]</h1></a>
 
  43    <td align="right">[% 'Customer Number' | $T8 %]</td>
 
  44    <td>[% HTML.escape(customernumber) %]</td>
 
  46    <td align="right">[% 'Vendor Number' | $T8 %]</td>
 
  47    <td>[% HTML.escape(vendornumber) %]</td>
 
  52    <td align="right">[% 'Company Name' | $T8 %]</td>
 
  53    <td>[% HTML.escape(name) %]</td>
 
  57    <td align="right">[% 'Department' | $T8 %]</td>
 
  58    <td>[% HTML.escape(department_1) %][% IF department_2 %][% IF department_1 %]; [% END %][% HTML.escape(department_2) %][% END %]</td>
 
  62    <td align="right">[% 'Street' | $T8 %]</td>
 
  63    <td>[% HTML.escape(street) %]</td>
 
  67    <td align="right">[% 'Zip, City' | $T8 %]</td>
 
  68    <td>[% HTML.escape(zipcode) %] [% HTML.escape(city) %]</td>
 
  72    <td align="right">[% 'Country' | $T8 %]</td>
 
  73    <td>[% HTML.escape(country) %]</td>
 
  77    <td align="right">[% 'GLN' | $T8 %]</td>
 
  78    <td>[% HTML.escape(gln) %]</td>
 
  82    <td align="right">[% 'Contact Person' | $T8 %]</td>
 
  83    <td>[% IF greeting %][% HTML.escape(greeting) %] [% END %][% HTML.escape(contact) %]</td>
 
  87    <td align="right">[% 'Phone' | $T8 %]</td>
 
  88    <td>[% HTML.escape(phone) %]</td>
 
  92    <td align="right">[% 'Fax' | $T8 %]</td>
 
  93    <td>[% HTML.escape(fax) %]</td>
 
  97    <td align="right">[% 'E-mail' | $T8 %]</td>
 
  98    <td>[% HTML.escape(email) %]</td>
 
 102    <td align="right">[% 'Homepage' | $T8 %]</td>
 
 103    <td>[% HTML.escape(homepage) %]</td>
 
 107    <td align="right">[% 'Credit Limit' | $T8 %]</td>
 
 108    <td>[% HTML.escape(creditlimit) %]</td>
 
 112    <td align="right">[% 'Discount' | $T8 %]</td>
 
 113    <td>[% HTML.escape(discount_as_percent) %]%</td>
 
 118    <td align="right">[% 'Pricegroup' | $T8 %]</td>
 
 119    <td>[% HTML.escape(pricegroup) %]</td>
 
 124    <td align="right">[% 'Payment Terms' | $T8 %]</td>
 
 125    <td>[% HTML.escape(payment_terms) %]</td>
 
 129    <td align="right">[% 'Delivery Terms' | $T8 %]</td>
 
 130    <td>[% HTML.escape(delivery_terms) %]</td>
 
 134    <td align="right">[% 'Tax Number' | $T8 %]</td>
 
 135    <td>[% HTML.escape(taxnumber) %]</td>
 
 139    <td align="right">[% 'USt-IdNr.' | $T8 %]</td>
 
 140    <td>[% HTML.escape(ustid) %]</td>
 
 145     <td align="right">[% 'KNr. beim Kunden' | $T8 %]</td>
 
 146     <td>[% HTML.escape(c_vendor_id) %]</td>
 
 151    <td align="right">[% 'Account Number' | $T8 %]</td>
 
 152    <td>[% HTML.escape(account_number) %]</td>
 
 156    <td align="right">[% 'Bank Code' | $T8 %]</td>
 
 157    <td>[% HTML.escape(bank_code) %]</td>
 
 161    <td align="right">[% 'Bank' | $T8 %]</td>
 
 162    <td>[% HTML.escape(bank) %]</td>
 
 166    <td align="right">[% 'IBAN' | $T8 %]</td>
 
 167    <td>[% HTML.escape(iban) %]</td>
 
 171    <td align="right">[% 'BIC' | $T8 %]</td>
 
 172    <td>[% HTML.escape(bic) %]</td>
 
 175    <td align="right">[% IF is_customer %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</td>
 
 176    <td>[% HTML.escape(business) %]</td>
 
 180    <td align="right">[% 'Language' | $T8 %]</td>
 
 181    <td>[% HTML.escape(language) %]</td>
 
 185    <td align="right" valign="top">[% 'Notes' | $T8 %]</td>
 
 186    <td valign="top">[% HTML.escape(notes) %]</td>
 
 192  [% FOREACH row = ADDITIONAL_BILLING_ADDRESSES %]
 
 196   [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO, ADDITIONAL_BILLING_ADDRESSES = ADDITIONAL_BILLING_ADDRESSES %]
 
 198   <a name="additional_billing_address[% loop.count %]"><h1>[% 'Additional Billing Address' | $T8 %] "[% HTML.escape(row.name) %]"</h1></a>
 
 202     <td align="right">[% 'Default Billing Address' | $T8 %]</td>
 
 203     <td>[% row.default_address ? LxERP.t8('yes') : LxERP.t8('no') %]</td>
 
 207     <td align="right">[% 'Name' | $T8 %]</td>
 
 208     <td>[% HTML.escape(row.name) %]</td>
 
 212     <td align="right">[% 'Department' | $T8 %]</td>
 
 213     <td>[% HTML.escape(row.department_1) %][% IF row.department_2 %][% IF row.department_1 %]; [% END %][% HTML.escape(row.department_2) %][% END %]</td>
 
 217     <td align="right">[% 'Street' | $T8 %]</td>
 
 218     <td>[% HTML.escape(row.street) %]</td>
 
 222     <td align="right">[% 'Zip, City' | $T8 %]</td>
 
 223     <td>[% HTML.escape(row.zipcode) %] [% HTML.escape(row.city) %]</td>
 
 227     <td align="right">[% 'Country' | $T8 %]</td>
 
 228     <td>[% HTML.escape(row.country) %]</td>
 
 232     <td align="right">[% 'GLN' | $T8 %]</td>
 
 233     <td>[% HTML.escape(row.gln) %]</td>
 
 237     <td align="right">[% 'Contact' | $T8 %]</td>
 
 238     <td>[% HTML.escape(row.contact) %]</td>
 
 242     <td align="right">[% 'Phone' | $T8 %]</td>
 
 243     <td>[% HTML.escape(row.phone) %]</td>
 
 247     <td align="right">[% 'Fax' | $T8 %]</td>
 
 248     <td>[% HTML.escape(row.fax) %]</td>
 
 252     <td align="right">[% 'E-mail' | $T8 %]</td>
 
 253     <td>[% HTML.escape(row.email) %]</td>
 
 260  [% FOREACH row = SHIPTO %]
 
 264   [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO, ADDITIONAL_BILLING_ADDRESSES = ADDITIONAL_BILLING_ADDRESSES %]
 
 266   <a name="shipping[% loop.count %]"><h1>[% 'Shipping Address' | $T8 %] "[% HTML.escape(row.shiptoname) %]"</h1></a>
 
 270     <td align="right">[% 'Company Name' | $T8 %]</td>
 
 271     <td>[% HTML.escape(row.shiptoname) %]</td>
 
 275     <td align="right">[% 'Department' | $T8 %]</td>
 
 276     <td>[% HTML.escape(row.shiptodepartment_1) %][% IF row.shiptodepartment_2 %][% IF row.shiptodepartment_1 %]; [% END %][% HTML.escape(row.shiptodepartment_2) %][% END %]</td>
 
 280     <td align="right">[% 'Street' | $T8 %]</td>
 
 281     <td>[% HTML.escape(row.shiptostreet) %]</td>
 
 285     <td align="right">[% 'Zip, City' | $T8 %]</td>
 
 286     <td>[% HTML.escape(row.shiptozipcode) %] [% HTML.escape(row.shiptocity) %]</td>
 
 290     <td align="right">[% 'Country' | $T8 %]</td>
 
 291     <td>[% HTML.escape(row.shiptocountry) %]</td>
 
 295     <td align="right">[% 'GLN' | $T8 %]</td>
 
 296     <td>[% HTML.escape(row.shiptogln) %]</td>
 
 300     <td align="right">[% 'Contact Person' | $T8 %]</td>
 
 301     <td>[% HTML.escape(row.shiptocontact) %]</td>
 
 305     <td align="right">[% 'Phone' | $T8 %]</td>
 
 306     <td>[% HTML.escape(row.shiptophone) %]</td>
 
 310     <td align="right">[% 'Fax' | $T8 %]</td>
 
 311     <td>[% HTML.escape(row.shiptofax) %]</td>
 
 315     <td align="right">[% 'E-mail' | $T8 %]</td>
 
 316     <td>[% HTML.escape(row.shiptoemail) %]</td>
 
 331  [% FOREACH row = CONTACTS %]
 
 335   [%- INCLUDE jump_block CONTACTS = CONTACTS, SHIPTO = SHIPTO, ADDITIONAL_BILLING_ADDRESSES = ADDITIONAL_BILLING_ADDRESSES %]
 
 337   <a name="contact[% loop.count %]"><h1>[% 'Contact Person' | $T8 %] "[% HTML.escape(row.cp_name) %]"</h1></a>
 
 341     <td align="right">[% 'Greeting' | $T8 %]</td>
 
 342     <td>[% HTML.escape(row.cp_greeting) %]</td>
 
 346     <td align="right">[% 'Title' | $T8 %]</td>
 
 347     <td>[% HTML.escape(row.cp_title) %]</td>
 
 351     <td align="right">[% 'Given Name' | $T8 %]</td>
 
 352     <td>[% HTML.escape(row.cp_givenname) %]</td>
 
 356     <td align="right">[% 'Name' | $T8 %]</td>
 
 357     <td>[% HTML.escape(row.cp_name) %]</td>
 
 361     <td align="right">[% 'Department' | $T8 %]</td>
 
 362     <td>[% HTML.escape(row.cp_abteilung) %]</td>
 
 366     <td align="right">[% 'Phone1' | $T8 %]</td>
 
 367     <td>[% HTML.escape(row.cp_phone1) %]</td>
 
 371     <td align="right">[% 'Phone2' | $T8 %]</td>
 
 372     <td>[% HTML.escape(row.cp_phone2) %]</td>
 
 376     <td align="right">[% 'Fax' | $T8 %]</td>
 
 377     <td>[% HTML.escape(row.cp_fax) %]</td>
 
 381     <td align="right">[% 'Mobile1' | $T8 %]</td>
 
 382     <td>[% HTML.escape(row.cp_mobile1) %]</td>
 
 386     <td align="right">[% 'Mobile2' | $T8 %]</td>
 
 387     <td>[% HTML.escape(row.cp_mobile2) %]</td>
 
 391     <td align="right">[% 'Sat. Phone' | $T8 %]</td>
 
 392     <td>[% HTML.escape(row.cp_satphone) %]</td>
 
 396     <td align="right">[% 'Sat. Fax' | $T8 %]</td>
 
 397     <td>[% HTML.escape(row.cp_satfax) %]</td>
 
 401     <td align="right">[% 'Project' | $T8 %]</td>
 
 402     <td>[% HTML.escape(row.cp_project) %]</td>
 
 406     <td align="right">[% 'E-mail' | $T8 %]</td>
 
 407     <td>[% HTML.escape(row.cp_email) %]</td>
 
 411     <td align="right">[% 'Private Phone' | $T8 %]</td>
 
 412     <td>[% HTML.escape(row.cp_privatphone) %]</td>
 
 416     <td align="right">[% 'Private E-mail' | $T8 %]</td>
 
 417     <td>[% HTML.escape(row.cp_privatemail) %]</td>
 
 421     <td align="right">[% 'Birthday' | $T8 %]</td>
 
 422     <td>[% HTML.escape(row.cp_birthday) %]</td>