<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE lire:report-spec PUBLIC
  "-//LogReport.ORG//DTD Lire Report Specification Markup Language V2.0//EN"
  "http://www.logreport.org/LRSML/2.0/lrsml.dtd">
<lire:report-spec xmlns:lire="http://www.logreport.org/LRSML/"
 superservice="print" schema="print-sheets" id="billing-per-printer">

 <lire:title>Billing per Printer Report</lire:title>
 <lire:description>
  <para>This report shows the billing totals per printer.</para>
 </lire:description>

 <lire:display-spec>
  <lire:title>Billing per Printer</lire:title>
 </lire:display-spec>

 <lire:filter-spec>
  <lire:and>
   <lire:ne arg1="$user" arg2="-"/>
   <lire:ne arg1="$billing" arg2="-"/>
  </lire:and>
 </lire:filter-spec>

 <lire:report-calc-spec>
  <lire:group sort="printer">
   <lire:field name="printer"/>

   <lire:group sort="user">
    <lire:field name="user"/>

    <lire:group sort="billing">
     <lire:field name="billing"/>

     <lire:sum name="fee" field="num_sheets" label="Pages"/>
     <lire:sum name="fee_ratio" field="num_sheets" ratio="table" label="% Total"/>
     <lire:sum name="fee_group_ratio" field="num_sheets" ratio="group"
      label="% Group"/>
    </lire:group>
   </lire:group>
  </lire:group>
 </lire:report-calc-spec>

</lire:report-spec>

