<?xml version="1.0"?>
<IQLJ>
 <OrderInfo>
  <RECORD>
   <OrderID Type="Long Integer">1</OrderID>
   <OnlineOrderNumber Type="Text">SBP[order_info.order_id]</OnlineOrderNumber>
   <OrderName Type="Text">[order_info.order_name][order_info.order_id]</OrderName>
   <OrderType Type="Integer">1</OrderType>
   <Notes Type="Special Instructions">[BP_ORDER_INFO_SEPECIAL_INSTRUCTION]</Notes>
   <CustomerOrderDate Type="Date/Time">[order_info.order_date] [order_info.order_time]</CustomerOrderDate>
   <CustomerName Type="Text">[shipping_info.first_name] [shipping_info.last_name]</CustomerName>
   <CustomerAddress1 Type="Text">[shipping_info.address1]</CustomerAddress1>
   <CustomerAddress2 Type="Text">[shipping_info.address2]</CustomerAddress2>
   <CustomerCity Type="Text">[shipping_info.city]</CustomerCity>
   <CustomerState Type="Text">[shipping_info.state]</CustomerState>
   <CustomerZip Type="Text">[shipping_info.zip]</CustomerZip>
   <CustomerCountry Type="Text">[shipping_info.country]</CustomerCountry>
   <CustomerPhone Type="Text">[shipping_info.phone]</CustomerPhone>
   <CustomerEmail Type="Text">[customer_info.email]</CustomerEmail>
   <CustomerTotal Type="Single">[order_info.grand_total]</CustomerTotal>
   <CustomerShipping Type="Single" />
   <CustomerTax Type="Single" />
   <CustomerShippingMethod Type="Text">[BP_SHIPPING_METHOD]</CustomerShippingMethod>
  </RECORD>
 </OrderInfo>
 <OrderDetail>
  <RECORD>
   <ItemID Type="Long Integer">[order_details.bayphoto_itemID]</ItemID>
   <LabOrderID Type="Long Integer">1</LabOrderID>
   <ProductID Type="Long Integer">0</ProductID>
   <ProductName Type="Text">[order_details.bayphoto_product_name]</ProductName>
   <ProductLayout Type="Text">[order_details.bayphoto_product_code].txt</ProductLayout>
   <ProductRefID Type="Text">[order_details.bayphoto_product_code]</ProductRefID>
   <InvoicingID Type="Text">[order_details.bayphoto_billing_code]</InvoicingID>
   <BillingCode Type="Text">[order_details.bayphoto_billing_code]</BillingCode>
   <ProductPrice Type="Single">.00</ProductPrice>
   <Qty Type="Integer">[order_details.quantity]</Qty>
   <Notes Type="Memo" />
   <Backprint1 Type="Text">[BP_BACKPRINT]</Backprint1>   
   <NodeCount Type="Integer">1</NodeCount>
   <ImageNode1 Type="Text">1</ImageNode1>
   <ImageFileName1 Type="Text">[order_details.original_file_name]</ImageFileName1>
   <SourcePath Type="Text" />
   <CropType1 Type="Memo">F</CropType1>
  </RECORD>
 </OrderDetail>
 <PrintServices>
		<RECORD>
			<PrintServiceID Type="Long Integer">[print_service.bayphoto_print_service_id]</PrintServiceID>
			<OrderID Type="Long Integer">1</OrderID>
			<ServiceID Type="Long Integer">54</ServiceID>
			<ServiceTypeID Type="Long Integer">2</ServiceTypeID>
			<ServiceName Type="Text">[print_service.bayphoto_print_service_name]</ServiceName>
			<ServiceNotes/>
			<ItemID Type="Long Integer">[print_service.bayphoto_itemID]</ItemID>
			<ServiceProductID Type="Text">[print_service.bayphoto_print_service_code]</ServiceProductID>
			<ServiceBillingID Type="Text">[print_service.bayphoto_print_service_billing_code]</ServiceBillingID>
			<ServiceSizeID Type="Text"/>
			<ServicePrice Type="Single">.00</ServicePrice>
			<ServiceQty Type="Integer">[print_service.quantity]</ServiceQty>
		</RECORD>
</PrintServices> 

<OrderServices>
		<RECORD>
			<OrderServiceID Type="Long Integer">[order_service.service_id]</OrderServiceID>
			<OrderID Type="Long Integer">1</OrderID>
			<ServiceID Type="Long Integer">54</ServiceID>
			<ServiceTypeID Type="Long Integer">3</ServiceTypeID>
			<ServiceName Type="Text">[order_service.order_service_name]</ServiceName>
			<ServiceProductID Type="Text">[order_service.order_service_code]</ServiceProductID>
			<ServiceBillingID Type="Text">[order_service.order_service_code]</ServiceBillingID>
			<ServiceSizeID Type="Text"/>
			<ServicePrice Type="Single">.00</ServicePrice>
			<ServiceQty Type="Integer">1</ServiceQty>
		</RECORD>
</OrderServices>



 <PhotographerInfo>
  <RECORD>
   <PK Type="Integer">1</PK>
   <Desc Type="Text">CustomerNumber</Desc>
   <Value Type="Memo">[BP_CUSTOMER_NUMBER]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">2</PK>
   <Desc Type="Text">LabAccountNumber</Desc> 
   <Value Type="Memo">[BP_LAB_ACCOUNT_NUMBER]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">3</PK>
   <Desc Type="Text">EventID</Desc>
   <Value Type="Memo">[BP_EVENT_ID]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">4</PK>
   <Desc Type="Text">OrderDate</Desc>
   <Value Type="Memo">[order_info.order_date]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">5</PK>
   <Desc Type="Text">OrderNotes</Desc>
   <Value Type="Memo">[BP_ORDER_NOTES]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">6</PK>
   <Desc Type="Text">Studio Name</Desc>
   <Value Type="Memo">[BP_STUDIO_NAME]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">7</PK>
   <Desc Type="Text">Address</Desc>
   <Value Type="Memo">[BP_ADDRESS]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">8</PK>
   <Desc Type="Text">City</Desc>
   <Value Type="Memo">[BP_CITY]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">9</PK>
   <Desc Type="Text">State</Desc>
   <Value Type="Memo">[BP_STATE]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">10</PK>
   <Desc Type="Text">Zip</Desc>

   <Value Type="Memo">[BP_ZIP]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">11</PK>
   <Desc Type="Text">Phone</Desc>
   <Value Type="Memo">[BP_PHONE]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">12</PK>
   <Desc Type="Text">Email</Desc>
   <Value Type="Memo">[BP_EMAIL_ADDRESS]</Value>
  </RECORD>
  <RECORD>
   <PK Type="Integer">13</PK>
   <Desc Type="Text">DirectShip</Desc>
   <Value Type="Memo">CUSTOMER</Value>
  </RECORD>
 </PhotographerInfo>
</IQLJ>																				