<!DOCTYPE openRPTDef>
<report>
 <title>Picking List - SO</title>
 <name>PickingListSOClosedLines</name>
 <description>Shows Closed Lines -- With Barcodes formatitemsitebarcode(itemsite_id) -- SO # barcoded formatsobarcode(cohead_id) -- With Logo, place logo graphic in images DB with name "logo"
</description>
 <grid>
  <snap/>
  <show/>
  <x>0.05</x>
  <y>0.05</y>
 </grid>
 <size>Letter</size>
 <portrait/>
 <topmargin>25</topmargin>
 <bottommargin>25</bottommargin>
 <rightmargin>25</rightmargin>
 <leftmargin>25</leftmargin>
 <querysource>
  <name>head</name>
  <sql>SELECT cust_number,
       formatsobarcode(cohead_id) AS order_barcode,
       formataddr(cohead_billtoaddress1,
                  cohead_billtoaddress2,
                  cohead_billtoaddress3,
                  (cohead_billtocity || '  ' ||   cohead_billtostate || '  ' || cohead_billtozipcode),
                  cohead_billtocountry) AS billing_address, 
       formataddr(cohead_shiptoaddress1,
                  cohead_shiptoaddress2,
                  cohead_shiptoaddress3,
                  (cohead_shiptocity || '  ' ||   cohead_shiptostate || '  ' || cohead_shiptozipcode),
                  cohead_shiptocountry) AS shipping_address,           
       trim(cntct_first_name || ' ' || cntct_last_name) AS cust_contact,
       cohead_billtoname,
       cohead_billtoaddress1,
       cohead_billtoaddress2,
       cohead_billtoaddress3,
       (cohead_billtocity || '  ' || cohead_billtostate || '  ' || cohead_billtozipcode) AS billtocitystatezip,
       cntct_phone AS cust_phone,
       cohead_shiptoname,
       cohead_shiptoaddress1,
       cohead_shiptoaddress2,
       cohead_shiptoaddress3,
       (cohead_shiptocity || '  ' || cohead_shiptostate || ' ' || cohead_shiptozipcode) AS shiptocitystatezip,
       cohead_number,
       cohead_shipvia,
       cohead_shiptophone,
       cohead_custponumber,
       formatDate(cohead_orderdate) AS orderdate,
       formatDate(getSoSchedDate(cohead_id)) AS scheddate,
       cohead_shipcomments, 
       terms_descrip
  FROM cohead JOIN custinfo ON (cohead_cust_id=cust_id)
              JOIN terms ON (cohead_terms_id=terms_id)
              LEFT OUTER JOIN cntct ON (cust_cntct_id=cntct_id)
  WHERE (cohead_id=&lt;? value("sohead_id") ?>);
  </sql>
 </querysource>
 <querysource>
  <name>detail</name>
  <sql>SELECT 1 AS groupby,
       coitem_linenumber AS sortline,
       coitem_subnumber AS sortsubline,
       formatsolinenumber(coitem_id) AS linenumber,
       coitem_memo,
       item_number,
       formatitemsitebarcode(itemsite_id) AS item_barcode,
       coitemuom.uom_name AS uom_name,
       itemsellinguom(item_id) AS shipuom,
       item_descrip1,
       item_descrip2,
       formatQty(coitem_qtyord) AS ordered,
       CASE WHEN (coitem_qtyreserved > 0.0)
            THEN formatQty(coitem_qtyreserved)
            ELSE NULL
       END AS reserved,
       CASE WHEN ((coitem_qtyshipped - coitem_qtyreturned) > 0.0)
            THEN formatQty(coitem_qtyshipped - coitem_qtyreturned)
            ELSE NULL
       END AS shipped,
       CASE WHEN (fetchMetricBool('RequireSOReservations'))
            THEN formatQty(coitem_qtyreserved)
            ELSE formatQty(noNeg(coitem_qtyord - coitem_qtyshipped + coitem_qtyreturned - qtyAtShipping('SO', coitem_id)))
       END AS balance,
       CASE WHEN (qtyAtShipping('SO', coitem_id) > 0.0)
            THEN formatQty(qtyAtShipping('SO', coitem_id))
            ELSE NULL
       END AS atShipping,
       getSoitemStatus(coitem_id) AS f_status
   FROM coitem JOIN itemsite ON (itemsite_id = coitem_itemsite_id)
               JOIN item ON (item_id = itemsite_item_id)
               JOIN whsinfo ON (warehous_id = itemsite_warehous_id)
               JOIN uom invuom ON (invuom.uom_id = item_inv_uom_id)
               JOIN uom coitemuom ON (coitemuom.uom_id = coitem_qty_uom_id) 
 WHERE ( (coitem_cohead_id=&lt;? value("sohead_id") ?>)
   AND   (coitem_status &lt;> 'X')
   AND   (coitem_status &lt;> 'C')
   AND   (item_type != 'K')
   AND   ( (fetchMetricBool('RequireSOReservations') AND (coitem_qtyreserved > 0.0)) OR
           (NOT fetchMetricBool('RequireSOReservations')) )
&lt;? if exists("warehous_id") ?>
   AND (itemsite_warehous_id=&lt;? value("warehous_id") ?>)
&lt;? endif ?>
)
ORDER BY sortline, sortsubline;</sql>
 </querysource>
 <querysource>
  <name>logo</name>
  <sql>SELECT image_data 
FROM image 
WHERE ((image_name='logo'));</sql>
 </querysource>
 <querysource>
  <name>site</name>
  <sql>&lt;? if exists("warehous_id") ?>
  SELECT warehous_code AS f_site
  FROM whsinfo
  WHERE (warehous_id=&lt;? value("warehous_id") ?>);
&lt;? else ?>
  SELECT text('') AS f_site;
&lt;? endif ?>
</sql>
 </querysource>
 <rpthead>
  <height>477</height>
  <image>
   <rect>
    <x>375</x>
    <y>0</y>
    <width>425</width>
    <height>85</height>
   </rect>
   <mode>stretch</mode>
   <data>
    <query>logo</query>
    <column>image_data</column>
   </data>
  </image>
  <text>
   <rect>
    <x>465</x>
    <y>280</y>
    <width>305</width>
    <height>20</height>
   </rect>
   <bottompad>10</bottompad>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>head</query>
    <column>shipping_address</column>
   </data>
  </text>
  <field>
   <rect>
    <x>120</x>
    <y>400</y>
    <width>252</width>
    <height>25</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>12</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>head</query>
    <column>cust_contact</column>
   </data>
  </field>
  <line>
   <xstart>25</xstart>
   <ystart>425</ystart>
   <xend>822</xend>
   <yend>425</yend>
   <weight>0</weight>
  </line>
  <field>
   <rect>
    <x>170</x>
    <y>155</y>
    <width>170</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>cohead_custponumber</column>
   </data>
  </field>
  <label>
   <rect>
    <x>340</x>
    <y>425</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <hcenter/>
   <vcenter/>
   <string>Reserved</string>
  </label>
  <text>
   <rect>
    <x>75</x>
    <y>280</y>
    <width>295</width>
    <height>20</height>
   </rect>
   <bottompad>10</bottompad>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>head</query>
    <column>billing_address</column>
   </data>
  </text>
  <label>
   <rect>
    <x>650</x>
    <y>425</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <hcenter/>
   <vcenter/>
   <string>At Shipping</string>
  </label>
  <label>
   <rect>
    <x>232</x>
    <y>425</y>
    <width>80</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <hcenter/>
   <vcenter/>
   <string>Ordered</string>
  </label>
  <barcode>
   <rect>
    <x>375</x>
    <y>95</y>
    <width>232</width>
    <height>25</height>
   </rect>
   <format>128</format>
   <maxlength>10</maxlength>
   <left/>
   <narrowBarWidth>0.01</narrowBarWidth>
   <data>
    <query>head</query>
    <column>order_barcode</column>
   </data>
  </barcode>
  <label>
   <rect>
    <x>440</x>
    <y>425</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <hcenter/>
   <vcenter/>
   <string>Shipped</string>
  </label>
  <label>
   <rect>
    <x>70</x>
    <y>195</y>
    <width>102</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <right/>
   <vcenter/>
   <string>S/O Date:</string>
  </label>
  <field>
   <rect>
    <x>465</x>
    <y>260</y>
    <width>305</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>cohead_shiptoname</column>
   </data>
  </field>
  <label>
   <rect>
    <x>745</x>
    <y>425</y>
    <width>55</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <hcenter/>
   <vcenter/>
   <string>Packed</string>
  </label>
  <label>
   <rect>
    <x>15</x>
    <y>95</y>
    <width>60</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <string>S/O #:</string>
  </label>
  <field>
   <rect>
    <x>432</x>
    <y>215</y>
    <width>331</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>cohead_shipvia</column>
   </data>
  </field>
  <field>
   <rect>
    <x>170</x>
    <y>125</y>
    <width>170</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>cust_number</column>
   </data>
  </field>
  <label>
   <rect>
    <x>385</x>
    <y>260</y>
    <width>75</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <right/>
   <vcenter/>
   <string>Ship To:</string>
  </label>
  <field>
   <rect>
    <x>75</x>
    <y>260</y>
    <width>305</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>cohead_billtoname</column>
   </data>
  </field>
  <field>
   <rect>
    <x>170</x>
    <y>95</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>cohead_number</column>
   </data>
  </field>
  <field>
   <rect>
    <x>175</x>
    <y>195</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>orderdate</column>
   </data>
  </field>
  <label>
   <rect>
    <x>50</x>
    <y>215</y>
    <width>121</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <right/>
   <vcenter/>
   <string>Sched. Date:</string>
  </label>
  <label>
   <rect>
    <x>15</x>
    <y>125</y>
    <width>122</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Customer #:</string>
  </label>
  <label>
   <rect>
    <x>545</x>
    <y>425</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <hcenter/>
   <vcenter/>
   <string>Balance</string>
  </label>
  <label>
   <rect>
    <x>15</x>
    <y>155</y>
    <width>150</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Customer P/O #:</string>
  </label>
  <line>
   <xstart>25</xstart>
   <ystart>465</ystart>
   <xend>822</xend>
   <yend>465</yend>
   <weight>0</weight>
  </line>
  <field>
   <rect>
    <x>175</x>
    <y>215</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>scheddate</column>
   </data>
  </field>
  <barcode>
   <rect>
    <x>375</x>
    <y>160</y>
    <width>307</width>
    <height>25</height>
   </rect>
   <format>3of9</format>
   <maxlength>20</maxlength>
   <left/>
   <narrowBarWidth>0.01</narrowBarWidth>
   <data>
    <query>head</query>
    <column>cohead_custponumber</column>
   </data>
  </barcode>
  <label>
   <rect>
    <x>10</x>
    <y>5</y>
    <width>330</width>
    <height>40</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>20</size>
    <weight>bold</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Picking List (SO)</string>
  </label>
  <field>
   <rect>
    <x>467</x>
    <y>400</y>
    <width>320</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>12</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>head</query>
    <column>terms_descrip</column>
   </data>
  </field>
  <label>
   <rect>
    <x>25</x>
    <y>400</y>
    <width>95</width>
    <height>25</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>12</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <string>Attention:</string>
  </label>
  <label>
   <rect>
    <x>10</x>
    <y>260</y>
    <width>65</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Bill To:</string>
  </label>
  <label>
   <rect>
    <x>365</x>
    <y>400</y>
    <width>75</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>12</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Terms:</string>
  </label>
  <barcode>
   <rect>
    <x>375</x>
    <y>130</y>
    <width>177</width>
    <height>25</height>
   </rect>
   <format>3of9</format>
   <maxlength>10</maxlength>
   <left/>
   <narrowBarWidth>0.01</narrowBarWidth>
   <data>
    <query>head</query>
    <column>cust_number</column>
   </data>
  </barcode>
  <label>
   <rect>
    <x>25</x>
    <y>425</y>
    <width>85</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>10</size>
    <weight>bold</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Item Number</string>
  </label>
  <label>
   <rect>
    <x>25</x>
    <y>442</y>
    <width>95</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>bold</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Item Description</string>
  </label>
  <label>
   <rect>
    <x>330</x>
    <y>215</y>
    <width>102</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <right/>
   <vcenter/>
   <string>Ship Via:</string>
  </label>
  <label>
   <rect>
    <x>20</x>
    <y>65</y>
    <width>60</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Site:</string>
  </label>
  <field>
   <rect>
    <x>170</x>
    <y>65</y>
    <width>100</width>
    <height>20</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>normal</weight>
   </font>
   <left/>
   <vcenter/>
   <data>
    <query>site</query>
    <column>f_site</column>
   </data>
  </field>
 </rpthead>
 <section>
  <name>detail</name>
  <group>
   <name>detail</name>
   <column>groupby</column>
   <foot>
    <height>73</height>
    <text>
     <rect>
      <x>50</x>
      <y>5</y>
      <width>625</width>
      <height>17</height>
     </rect>
     <bottompad>14</bottompad>
     <font>
      <face>Arial</face>
      <size>10</size>
      <weight>normal</weight>
     </font>
     <left/>
     <vcenter/>
     <data>
      <query>head</query>
      <column>cohead_shipcomments</column>
     </data>
    </text>
   </foot>
  </group>
  <group>
   <name>lineitem</name>
   <column>linenumber</column>
   <foot>
    <height>28</height>
    <line>
     <xstart>5</xstart>
     <ystart>5</ystart>
     <xend>842</xend>
     <yend>5</yend>
     <weight>0</weight>
    </line>
   </foot>
  </group>
  <detail>
   <key>
    <query>detail</query>
   </key>
   <height>156</height>
   <label>
    <rect>
     <x>565</x>
     <y>103</y>
     <width>60</width>
     <height>17</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <string>Status:</string>
   </label>
   <line>
    <xstart>415</xstart>
    <ystart>80</ystart>
    <xend>500</xend>
    <yend>80</yend>
    <weight>0</weight>
   </line>
   <line>
    <xstart>305</xstart>
    <ystart>110</ystart>
    <xend>395</xend>
    <yend>110</yend>
    <weight>0</weight>
   </line>
   <line>
    <xstart>80</xstart>
    <ystart>80</ystart>
    <xend>170</xend>
    <yend>80</yend>
    <weight>0</weight>
   </line>
   <line>
    <xstart>745</xstart>
    <ystart>15</ystart>
    <xend>795</xend>
    <yend>15</yend>
    <weight>1</weight>
   </line>
   <field>
    <rect>
     <x>25</x>
     <y>0</y>
     <width>200</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>11</size>
     <weight>bold</weight>
    </font>
    <left/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>item_number</column>
    </data>
   </field>
   <text>
    <rect>
     <x>100</x>
     <y>120</y>
     <width>700</width>
     <height>17</height>
    </rect>
    <bottompad>14</bottompad>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <left/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>coitem_memo</column>
    </data>
   </text>
   <line>
    <xstart>415</xstart>
    <ystart>110</ystart>
    <xend>500</xend>
    <yend>110</yend>
    <weight>0</weight>
   </line>
   <line>
    <xstart>305</xstart>
    <ystart>80</ystart>
    <xend>395</xend>
    <yend>80</yend>
    <weight>0</weight>
   </line>
   <field>
    <rect>
     <x>630</x>
     <y>103</y>
     <width>85</width>
     <height>15</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>f_status</column>
    </data>
   </field>
   <barcode>
    <rect>
     <x>365</x>
     <y>30</y>
     <width>467</width>
     <height>35</height>
    </rect>
    <format>128</format>
    <maxlength>15</maxlength>
    <left/>
    <narrowBarWidth>0.01</narrowBarWidth>
    <data>
     <query>detail</query>
     <column>item_barcode</column>
    </data>
   </barcode>
   <label>
    <rect>
     <x>20</x>
     <y>120</y>
     <width>75</width>
     <height>17</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <string>Notes:</string>
   </label>
   <label>
    <rect>
     <x>25</x>
     <y>65</y>
     <width>47</width>
     <height>17</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <string>Carton:</string>
   </label>
   <line>
    <xstart>190</xstart>
    <ystart>80</ystart>
    <xend>280</xend>
    <yend>80</yend>
    <weight>0</weight>
   </line>
   <field>
    <rect>
     <x>530</x>
     <y>0</y>
     <width>100</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>balance</column>
    </data>
   </field>
   <line>
    <xstart>80</xstart>
    <ystart>110</ystart>
    <xend>170</xend>
    <yend>110</yend>
    <weight>0</weight>
   </line>
   <line>
    <xstart>632</xstart>
    <ystart>80</ystart>
    <xend>720</xend>
    <yend>80</yend>
    <weight>0</weight>
   </line>
   <label>
    <rect>
     <x>25</x>
     <y>95</y>
     <width>47</width>
     <height>17</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <string>Qty:</string>
   </label>
   <field>
    <rect>
     <x>25</x>
     <y>40</y>
     <width>295</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>11</size>
     <weight>bold</weight>
    </font>
    <left/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>item_descrip2</column>
    </data>
   </field>
   <field>
    <rect>
     <x>320</x>
     <y>0</y>
     <width>100</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>reserved</column>
    </data>
   </field>
   <field>
    <rect>
     <x>227</x>
     <y>0</y>
     <width>85</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>ordered</column>
    </data>
   </field>
   <field>
    <rect>
     <x>425</x>
     <y>0</y>
     <width>100</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>shipped</column>
    </data>
   </field>
   <line>
    <xstart>190</xstart>
    <ystart>110</ystart>
    <xend>280</xend>
    <yend>110</yend>
    <weight>0</weight>
   </line>
   <field>
    <rect>
     <x>25</x>
     <y>20</y>
     <width>295</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>11</size>
     <weight>bold</weight>
    </font>
    <left/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>item_descrip1</column>
    </data>
   </field>
   <field>
    <rect>
     <x>635</x>
     <y>0</y>
     <width>100</width>
     <height>20</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>atshipping</column>
    </data>
   </field>
   <label>
    <rect>
     <x>565</x>
     <y>70</y>
     <width>60</width>
     <height>17</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <string>Batch #:</string>
   </label>
   <field>
    <rect>
     <x>630</x>
     <y>88</y>
     <width>85</width>
     <height>15</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <vcenter/>
    <data>
     <query>detail</query>
     <column>uom_name</column>
    </data>
   </field>
   <label>
    <rect>
     <x>565</x>
     <y>88</y>
     <width>60</width>
     <height>17</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>10</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <string>UOM:</string>
   </label>
  </detail>
 </section>
 <pgfoot>
  <height>57</height>
  <label>
   <rect>
    <x>25</x>
    <y>5</y>
    <width>62</width>
    <height>17</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <string>Print Date: </string>
  </label>
  <label>
   <rect>
    <x>695</x>
    <y>5</y>
    <width>37</width>
    <height>17</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <string>Page:</string>
  </label>
  <field>
   <rect>
    <x>735</x>
    <y>5</y>
    <width>45</width>
    <height>17</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>Context Query</query>
    <column>page_number</column>
   </data>
  </field>
  <field>
   <rect>
    <x>90</x>
    <y>5</y>
    <width>95</width>
    <height>17</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>Context Query</query>
    <column>report_date</column>
   </data>
  </field>
  <label>
   <rect>
    <x>360</x>
    <y>5</y>
    <width>90</width>
    <height>17</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <string>Sales Order #:</string>
  </label>
  <field>
   <rect>
    <x>455</x>
    <y>5</y>
    <width>80</width>
    <height>17</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>head</query>
    <column>cohead_number</column>
   </data>
  </field>
 </pgfoot>
 <rptfoot>
  <height>113</height>
  <label>
   <rect>
    <x>40</x>
    <y>5</y>
    <width>165</width>
    <height>30</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>bold</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Checked By:</string>
  </label>
  <line>
   <xstart>186</xstart>
   <ystart>90</ystart>
   <xend>360</xend>
   <yend>90</yend>
   <weight>0</weight>
  </line>
  <label>
   <rect>
    <x>40</x>
    <y>65</y>
    <width>160</width>
    <height>35</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>bold</weight>
   </font>
   <left/>
   <vcenter/>
   <string>Completed By:</string>
  </label>
  <line>
   <xstart>185</xstart>
   <ystart>25</ystart>
   <xend>362</xend>
   <yend>25</yend>
   <weight>0</weight>
  </line>
 </rptfoot>
</report>
