User Tools

Site Tools


mattel:address_file

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
mattel:address_file [2012/07/09 20:42] – davemattel:address_file [2025/05/22 21:53] (current) – external edit 127.0.0.1
Line 12: Line 12:
 <Addresses> <Addresses>
    <Address CompanyID="LC_APPTASTIC" CompanyName="Apptastic Software Inc." CompanyType="VendorLC">    <Address CompanyID="LC_APPTASTIC" CompanyName="Apptastic Software Inc." CompanyType="VendorLC">
 +      
       <CompanyAddr01>1010 Polytek Street</CompanyAddr01>       <CompanyAddr01>1010 Polytek Street</CompanyAddr01>
       <CompanyAddr02>Unit 21</CompanyAddr02>       <CompanyAddr02>Unit 21</CompanyAddr02>
Line 19: Line 20:
       <CompanyZip>K1J 9J1</CompanyZip>       <CompanyZip>K1J 9J1</CompanyZip>
       <CompanyWebPage>www.apptastic.com</CompanyWebPage>       <CompanyWebPage>www.apptastic.com</CompanyWebPage>
 +
 +      <Contact ContactID="LC_APPTASTIC_DAVE" ContactName="Dave Stephenson">
 +          <ContactPhone>(613) 748-7066</ContactPhone>
 +          <ContactFax>(613) 749-6910</ContactFax>
 +          <ContactEmail>[email protected]</ContactEmail>
 +      </Contact>
  
    </Address>    </Address>
Line 24: Line 31:
  
 </code> </code>
 +
 +==== Address tags ====
  
 The .addr file is an xml file with a <Addresses> root tag and multiple child <Address> tags.  An <Address> tag would have the following attributes: The .addr file is an xml file with a <Addresses> root tag and multiple child <Address> tags.  An <Address> tag would have the following attributes:
  
-  * companyid (required) - the id attribute is the connection between this address and an address for a product in the main xml file. +  * CompanyID   (required) - the id attribute is the connection between this address and an address for a product in the main xml file. 
-  * companytype (required) - what type of address is this? +  * CompanyType (required) - what type of address is this? 
-  * companyname (required) - the name of the company as it should appear in Speed-Quote.+  * CompanyName (required) - the name of the company as it should appear in Speed-Quote.
  
-The following values are valid for companytype attribute:+The following values are valid for CompanyType attribute:
  
   * VendorDomestic   * VendorDomestic
Line 41: Line 50:
   * CustomsBroker   * CustomsBroker
   * Bank   * Bank
 +
 +Please see the Addresses worksheet in the {{:mattel:mattelspeedquotefields.xls|}} excel file for a list of <CompanyXXXX> tag fields and associated information.
 +
 +==== Contact tags ====
 +
 +An <Address> node can have multiple <Contact> tags which define the contacts within that company.  A <Contact> tag has the following attributes:
 +
 +  * ContactID   (required) - the ContactID attribute is the connection between this contact and a contact for a product in the main xml file.
 +  * ContactName (required) - the name of the contact as it should appear in Speed-Quote.
 +
 +==== Connection to main xml file ====
 +
 +In the main xml file an address linking tag is used to link to a specific address or contact.  The tag name for a company link is <Addr//COMPANYTYPE//Company> and the tag name for a contact link is <Addr//COMPANYTYPE//Contact>.  Where //COMPANYTYPE// is one of the above CompanyType attribute values.  
 +
 +The connection tags in the main xml file to link to the above example address would show as:
 +
 +<code>
 +<AddrVendorLCCompany>LC_APPTASTIC</AddrVendorLCCompany>
 +<AddrVendorLCContact>LC_APPTASTIC_DAVE</AddrVendorLCContact>
 +</code>
mattel/address_file.1341866577.txt.gz · Last modified: (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki