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

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

 <lire:display-spec>
  <lire:title>Billing Totals</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="user">
   <lire:field name="user"/>
   <lire:sum name="fee_by_user" field="num_sheets"/>
   <lire:group sort="billing">
    <lire:field name="billing"/>
    <lire:sum name="fee" field="num_sheets"/>
   </lire:group>
  </lire:group>
 </lire:report-calc-spec>

</lire:report-spec>
