<!DOCTYPE openRPTDef>
<report>
 <title>AP 30 60 90 Aging</title>
 <name>APAging</name>
 <description>Enhanced AP Aging - Uses 30-60-90 columns - User provides Relative Date - all amounts in base currency based on Document Date.</description>
 <parameter default="" active="true" listtype="static" type="string" name="relDate" >
  <description>Date Relative to Today</description>
 </parameter>
 <size>Letter</size>
 <landscape/>
 <topmargin>50</topmargin>
 <bottommargin>50</bottommargin>
 <rightmargin>50</rightmargin>
 <leftmargin>50</leftmargin>
 <querysource>
  <name>detail</name>
  <sql>SELECT 
	apaging_docdate,
	apaging_duedate,
	apaging_ponumber,
	apaging_docnumber,
        apaging_invcnumber,
	apaging_doctype,
	apaging_vend_id,
	apaging_vend_number,
	apaging_vend_name,
	apaging_vend_vendtype_id,
	apaging_vendtype_code,
	apaging_terms_descrip,
	formatMoney(apaging_apopen_amount) AS apaging_apopen_amount,
	apaging_cur_val,   formatMoney(apaging_cur_val)    AS apaging_cur_amt,
	apaging_thirty_val,formatMoney(apaging_thirty_val) AS apaging_thirty_amt,
	apaging_sixty_val, formatMoney(apaging_sixty_val)  AS apaging_sixty_amt,
	apaging_ninety_val,formatMoney(apaging_ninety_val) AS apaging_ninety_amt,
	apaging_plus_val,  formatMoney(apaging_plus_val)   AS apaging_plus_amt,
	apaging_total_val, formatMoney(apaging_total_val)  AS apaging_total_amt,
	apaging_disc_val,  formatMoney(apaging_disc_val)   AS apaging_disc_amt,
	apaging_discdate,
	apaging_discdays,
	apaging_discprcnt
FROM apaging(&lt;? value("relDate") ?>, &lt;? value("useDocDate") ?>)
&lt;? if exists("vend_id") ?>
   WHERE (apaging_vend_id=&lt;? value("vend_id") ?>)
&lt;? elseif exists("vendtype_id") ?>
   WHERE (apaging_vend_vendtype_id=&lt;? value("vendtype_id") ?>)
&lt;? elseif exists("vendtype_pattern") ?>
   WHERE (apaging_vendtype_code ~ &lt;? value("vendtype_pattern") ?>)
&lt;? endif ?>;</sql>
 </querysource>
 <rpthead>
  <height>77</height>
  <label>
   <rect>
    <x>0</x>
    <y>0</y>
    <width>365</width>
    <height>31</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>14</size>
    <weight>bold</weight>
   </font>
   <left/>
   <top/>
   <string>Accounts Payable Aging Report</string>
  </label>
  <field>
   <rect>
    <x>45</x>
    <y>40</y>
    <width>110</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>bold</weight>
   </font>
   <left/>
   <top/>
   <data>
    <query>Parameter Query</query>
    <column>relDate</column>
   </data>
  </field>
  <label>
   <rect>
    <x>0</x>
    <y>40</y>
    <width>40</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>bold</weight>
   </font>
   <left/>
   <top/>
   <string>As of:</string>
  </label>
 </rpthead>
 <section>
  <name>detail</name>
  <group>
   <name>Vendor</name>
   <column>apaging_vend_number</column>
   <pagebreak when="after foot" />
   <head>
    <height>113</height>
    <label>
     <rect>
      <x>0</x>
      <y>70</y>
      <width>15</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>y</string>
    </label>
    <label>
     <rect>
      <x>20</x>
      <y>90</y>
      <width>85</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Vendor Inv #</string>
    </label>
    <label>
     <rect>
      <x>0</x>
      <y>60</y>
      <width>15</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>T</string>
    </label>
    <label>
     <rect>
      <x>0</x>
      <y>10</y>
      <width>103</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>bold</weight>
     </font>
     <left/>
     <top/>
     <string>Vendor Name:</string>
    </label>
    <label>
     <rect>
      <x>867</x>
      <y>80</y>
      <width>40</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Discount</string>
    </label>
    <label>
     <rect>
      <x>620</x>
      <y>90</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <string>31+60 Days</string>
    </label>
    <label>
     <rect>
      <x>0</x>
      <y>25</y>
      <width>103</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>bold</weight>
     </font>
     <left/>
     <top/>
     <string>Vendor Number:</string>
    </label>
    <label>
     <rect>
      <x>942</x>
      <y>90</y>
      <width>45</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Discount</string>
    </label>
    <label>
     <rect>
      <x>867</x>
      <y>90</y>
      <width>40</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Date</string>
    </label>
    <field>
     <rect>
      <x>125</x>
      <y>25</y>
      <width>220</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_vend_number</column>
     </data>
    </field>
    <label>
     <rect>
      <x>360</x>
      <y>80</y>
      <width>80</width>
      <height>15</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Original</string>
    </label>
    <label>
     <rect>
      <x>360</x>
      <y>90</y>
      <width>80</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Invoice Amount</string>
    </label>
    <label>
     <rect>
      <x>775</x>
      <y>90</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <string>90+ Days</string>
    </label>
    <label>
     <rect>
      <x>0</x>
      <y>90</y>
      <width>15</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>e</string>
    </label>
    <label>
     <rect>
      <x>0</x>
      <y>80</y>
      <width>15</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>p</string>
    </label>
    <label>
     <rect>
      <x>530</x>
      <y>90</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <string>0+30 Days</string>
    </label>
    <line>
     <xstart>0</xstart>
     <ystart>105</ystart>
     <xend>1000</xend>
     <yend>105</yend>
     <weight>0</weight>
    </line>
    <field>
     <rect>
      <x>125</x>
      <y>40</y>
      <width>220</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_terms_descrip</column>
     </data>
    </field>
    <line>
     <xstart>0</xstart>
     <ystart>5</ystart>
     <xend>1000</xend>
     <yend>5</yend>
     <weight>0</weight>
    </line>
    <label>
     <rect>
      <x>270</x>
      <y>90</y>
      <width>60</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Due Date</string>
    </label>
    <label>
     <rect>
      <x>110</x>
      <y>90</y>
      <width>85</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Voucher #</string>
    </label>
    <label>
     <rect>
      <x>705</x>
      <y>90</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <string>61+90 Days</string>
    </label>
    <label>
     <rect>
      <x>200</x>
      <y>90</y>
      <width>60</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>Invoice Date</string>
    </label>
    <field>
     <rect>
      <x>125</x>
      <y>10</y>
      <width>220</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_vend_name</column>
     </data>
    </field>
    <label>
     <rect>
      <x>450</x>
      <y>90</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <string>Current</string>
    </label>
    <label>
     <rect>
      <x>0</x>
      <y>40</y>
      <width>103</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>bold</weight>
     </font>
     <left/>
     <top/>
     <string>Terms:</string>
    </label>
   </head>
   <foot>
    <height>96</height>
    <label>
     <rect>
      <x>450</x>
      <y>65</y>
      <width>475</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <left/>
     <top/>
     <string>All amounts are in base currency as of the document date.</string>
    </label>
    <field>
     <rect>
      <x>0</x>
      <y>50</y>
      <width>220</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>bold</weight>
     </font>
     <left/>
     <top/>
     <data>
      <query>detail</query>
      <column>vend_name</column>
     </data>
    </field>
    <field>
     <rect>
      <x>530</x>
      <y>5</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_thirty_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
    <label>
     <rect>
      <x>450</x>
      <y>55</y>
      <width>55</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>bold</weight>
     </font>
     <left/>
     <top/>
     <string>Note:</string>
    </label>
    <line>
     <xstart>237</xstart>
     <ystart>32</ystart>
     <xend>237</xend>
     <yend>32</yend>
     <weight>0</weight>
    </line>
    <field>
     <rect>
      <x>450</x>
      <y>5</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_cur_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
    <field>
     <rect>
      <x>220</x>
      <y>50</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_total_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
    <field>
     <rect>
      <x>938</x>
      <y>5</y>
      <width>55</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_disc_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
    <label>
     <rect>
      <x>0</x>
      <y>35</y>
      <width>135</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>bold</weight>
     </font>
     <left/>
     <top/>
     <string>Total For Vendor</string>
    </label>
    <field>
     <rect>
      <x>620</x>
      <y>5</y>
      <width>70</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_sixty_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
    <field>
     <rect>
      <x>705</x>
      <y>5</y>
      <width>70</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_ninety_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
    <line>
     <xstart>0</xstart>
     <ystart>0</ystart>
     <xend>1000</xend>
     <yend>0</yend>
     <weight>0</weight>
    </line>
    <field>
     <rect>
      <x>780</x>
      <y>5</y>
      <width>75</width>
      <height>12</height>
     </rect>
     <font>
      <face>Arial</face>
      <size>8</size>
      <weight>normal</weight>
     </font>
     <right/>
     <top/>
     <data>
      <query>detail</query>
      <column>apaging_plus_val</column>
     </data>
     <tracktotal subtotal="true" builtin="true" >qty</tracktotal>
    </field>
   </foot>
  </group>
  <detail>
   <key>
    <query>detail</query>
   </key>
   <height>18</height>
   <field>
    <rect>
     <x>860</x>
     <y>0</y>
     <width>70</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_discdate</column>
    </data>
   </field>
   <field>
    <rect>
     <x>939</x>
     <y>0</y>
     <width>55</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_disc_amt</column>
    </data>
   </field>
   <field>
    <rect>
     <x>270</x>
     <y>0</y>
     <width>85</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <left/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_duedate</column>
    </data>
   </field>
   <field>
    <rect>
     <x>20</x>
     <y>0</y>
     <width>80</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <left/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_invcnumber</column>
    </data>
   </field>
   <field>
    <rect>
     <x>0</x>
     <y>0</y>
     <width>15</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <left/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_doctype</column>
    </data>
   </field>
   <field>
    <rect>
     <x>530</x>
     <y>0</y>
     <width>75</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_thirty_amt</column>
    </data>
   </field>
   <field>
    <rect>
     <x>110</x>
     <y>0</y>
     <width>80</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <left/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_docnumber</column>
    </data>
   </field>
   <field>
    <rect>
     <x>450</x>
     <y>0</y>
     <width>75</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_cur_amt</column>
    </data>
   </field>
   <field>
    <rect>
     <x>795</x>
     <y>0</y>
     <width>55</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_plus_amt</column>
    </data>
   </field>
   <field>
    <rect>
     <x>355</x>
     <y>0</y>
     <width>80</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_apopen_amount</column>
    </data>
   </field>
   <field>
    <rect>
     <x>620</x>
     <y>0</y>
     <width>70</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_sixty_amt</column>
    </data>
   </field>
   <field>
    <rect>
     <x>705</x>
     <y>0</y>
     <width>70</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <right/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_ninety_amt</column>
    </data>
   </field>
   <field>
    <rect>
     <x>200</x>
     <y>0</y>
     <width>85</width>
     <height>12</height>
    </rect>
    <font>
     <face>Arial</face>
     <size>8</size>
     <weight>normal</weight>
    </font>
    <left/>
    <top/>
    <data>
     <query>detail</query>
     <column>apaging_docdate</column>
    </data>
   </field>
  </detail>
 </section>
 <pgfoot>
  <lastpage/>
  <height>102</height>
  <field>
   <rect>
    <x>220</x>
    <y>35</y>
    <width>75</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_total_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <field>
   <rect>
    <x>620</x>
    <y>5</y>
    <width>70</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_sixty_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <field>
   <rect>
    <x>530</x>
    <y>5</y>
    <width>75</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_thirty_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <label>
   <rect>
    <x>450</x>
    <y>45</y>
    <width>475</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <string>All amounts are in base currency as of the document date.</string>
  </label>
  <field>
   <rect>
    <x>450</x>
    <y>5</y>
    <width>75</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_cur_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <label>
   <rect>
    <x>450</x>
    <y>35</y>
    <width>55</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>bold</weight>
   </font>
   <left/>
   <top/>
   <string>Note:</string>
  </label>
  <label>
   <rect>
    <x>0</x>
    <y>35</y>
    <width>170</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>bold</weight>
   </font>
   <left/>
   <top/>
   <string>Total For All Vendors</string>
  </label>
  <field>
   <rect>
    <x>710</x>
    <y>5</y>
    <width>70</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_ninety_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <field>
   <rect>
    <x>780</x>
    <y>5</y>
    <width>75</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_plus_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <label>
   <rect>
    <x>335</x>
    <y>5</y>
    <width>95</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>bold</weight>
   </font>
   <left/>
   <top/>
   <string>Report Totals:</string>
  </label>
  <field>
   <rect>
    <x>942</x>
    <y>5</y>
    <width>55</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <right/>
   <top/>
   <data>
    <query>detail</query>
    <column>apaging_disc_val</column>
   </data>
   <tracktotal builtin="true" >qty</tracktotal>
  </field>
  <label>
   <rect>
    <x>457</x>
    <y>80</y>
    <width>35</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <string>Page: </string>
  </label>
  <field>
   <rect>
    <x>515</x>
    <y>80</y>
    <width>42</width>
    <height>12</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>
  <line>
   <xstart>1</xstart>
   <ystart>2</ystart>
   <xend>1000</xend>
   <yend>2</yend>
   <weight>2</weight>
  </line>
 </pgfoot>
 <pgfoot>
  <height>47</height>
  <field>
   <rect>
    <x>515</x>
    <y>25</y>
    <width>42</width>
    <height>12</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>
  <label>
   <rect>
    <x>457</x>
    <y>25</y>
    <width>35</width>
    <height>12</height>
   </rect>
   <font>
    <face>Arial</face>
    <size>8</size>
    <weight>normal</weight>
   </font>
   <left/>
   <top/>
   <string>Page: </string>
  </label>
 </pgfoot>
</report>
