adding billing report for horizon from database extracts
authorRogan Hamby <rhamby@equinoxinitiative.org>
Fri, 24 Jan 2020 16:13:29 +0000 (11:13 -0500)
committerRogan Hamby <rhamby@equinoxinitiative.org>
Fri, 24 Jan 2020 16:13:29 +0000 (11:13 -0500)
mig-xml/mapping_reports.xml

index 47f07e6..53665d5 100644 (file)
         <query>SELECT cki_notes FROM item_csv_clean WHERE LENGTH(cki_notes) > 1 LIMIT 20;</query>
     </report>
 
+    <report>
+        <name>hz_burbbills</name>
+        <report_title>Count of Bills by Type</report_title>
+        <tag>horizon2</tag>
+        <iteration>0</iteration>
+        <heading>Count.Bill Type</heading>
+        <query>SELECT COUNT(*), block FROM burb_csv_clean WHERE amount::INTEGER > 0 GROUP BY 2;</query>
+    </report>
+
 <!-- resource mate -->
 
     <report>