<?xml version="1.0" encoding="UTF-8"?>
<qsf-map xmlns="http://qof.sourceforge.net/">
  <definition qof_version="3">
    <define e_type="pilot_address" foreach="true"/>
    <define e_type="gncCustomer"/>
    <define e_type="gncAddress" foreach="true"/>
  </definition>
  <object type="gncCustomer">
      <calculate type="string" value="id"/>
      <calculate type="string" value="notes">
        <set object="pilot_address">entryNote</set>
      </calculate>
      <calculate type="string" value="name">
        <set object="pilot_address">entryCompany</set>
      </calculate>
      <calculate type="guid" value="guid"/>
      <calculate type="guid" value="addr">
        <set object="pilot_address">guid</set>
      </calculate>
      <calculate type="guid" value="customer_terms"/>
      <calculate type="guid" value="shipaddr"/>
      <calculate type="boolean" value="active"/>
      <calculate type="boolean" value="tax table override"/>
      <calculate type="numeric" value="amount of discount"/>
      <calculate type="numeric" value="amount of credit"/>
  </object>
  <object type="gncAddress">
      <calculate type="string" value="city">
        <set object="pilot_address">entryCity</set>
      </calculate>
      <calculate type="string" value="street">
        <set object="pilot_address">entryAddress</set>
      </calculate>
      <calculate type="string" value="fax">
        <set object="pilot_address">entryPhone2</set>
      </calculate>
      <calculate type="string" value="number"/>
      <calculate type="string" value="name">
        <set object="pilot_address">entryFirstname</set>
        <set object="pilot_address">entryLastname</set>
      </calculate>
      <calculate type="string" value="email">
        <set object="pilot_address">entryPhone5</set>
      </calculate>
      <calculate type="string" value="locality">
        <set object="pilot_address">entryState</set>
      </calculate>
      <calculate type="string" value="phone">
        <set object="pilot_address">entryPhone1</set>
      </calculate>
      <calculate type="guid" value="guid"/>
      <calculate type="guid" value="owner">
        <set object="pilot_address">guid</set>
      </calculate>
  </object>
  <object type="pilot_address">
      <calculate type="string" value="entryCity">
        <set object="gncAddress">city</set>
      </calculate>
      <calculate type="string" value="entryCustom4"/>
      <calculate type="string" value="entryPhone1">
        <set object="gncAddress">phone</set>
      </calculate>
      <calculate type="string" value="entryZip"/>
      <calculate type="string" value="entryLastname">
        <set object="gncAddress">name</set>
      </calculate>
      <calculate type="string" value="entryPhone2"/>
      <calculate type="string" value="entryNote"/>
      <calculate type="string" value="category"/>
      <calculate type="string" value="entryFirstname"/>
      <calculate type="string" value="entryPhone3"/>
      <calculate type="string" value="entryTitle"/>
      <calculate type="string" value="entryPhone4"/>
      <calculate type="string" value="entryCompany">
        <set object="gncCustomer">name</set>
      </calculate>
      <calculate type="string" value="entryPhone5"/>
      <calculate type="string" value="entryState">
        <set object="gncAddress">locality</set>
      </calculate>
      <calculate type="string" value="entryCustom1"/>
      <calculate type="string" value="entryAddress">
        <set object="gncAddress">number</set>
      </calculate>
      <calculate type="string" value="entryCustom2"/>
      <calculate type="string" value="entryCountry"/>
      <calculate type="string" valuee="entryCustom3"/>
  </object>
</qsf-map>
