<?xml version="1.0" encoding="UTF-8"?>
<qsf-map xmlns="http://qof.sourceforge.net/">
  <definition qof_version="3">
    <define e_type="pilot_address"/>
    <define e_type="gncBillTerm"/>
    <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>entryNote</set>
      </calculate>
      <calculate type="string" value="name">
        <set>entryCompany</set>
      </calculate>
      <calculate type="guid" value="guid"/>
      <calculate type="guid" value="addr">
        <set>guid</set>
      </calculate>
      <calculate type="guid" value="customer_terms"/>
      <calculate type="guid" value="shipaddr"/>
      <calculate type="boolean" value="active">
	<set>true</set>
      </calculate>
      <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>entryZip</set>
      </calculate>
      <calculate type="string" value="street">
        <set>entryAddress</set>
      </calculate>
      <calculate type="string" value="fax">
        <set>entryPhone2</set>
      </calculate>
      <calculate type="string" value="number"/>
      <calculate type="string" value="name">
        <set>entryFirstname</set>
        <set>entryLastname</set>
      </calculate>
      <calculate type="string" value="email">
        <set>entryPhone5</set>
      </calculate>
      <calculate type="string" value="locality">
        <set>entryState</set>
      </calculate>
      <calculate type="string" value="phone">
        <set>entryPhone1</set>
      </calculate>
      <calculate type="guid" value="guid"/>
      <calculate type="guid" value="owner">
        <set>guid</set>
      </calculate>
  </object>
  <object type="gncBillTerm">
      <calculate type="string" value="description"/>
      <calculate type="string" value="name"/>
      <calculate type="string" value="bill type"/>
      <calculate type="guid" value="guid"/>
      <calculate type="numeric" value="amount of discount"/>
      <calculate type="gint32" value="cut off"/>
      <calculate type="gint32" value="number of days due"/>
      <calculate type="gint32" value="number of discounted days"/>
  </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>
