Remove view reporter.xact_billing_totals from reporter-schema.sql.
authorJason Stephenson <jstephenson@mvlc.org>
Wed, 23 Jan 2013 14:39:19 +0000 (09:39 -0500)
committerJason Stephenson <jstephenson@mvlc.org>
Wed, 23 Jan 2013 14:39:19 +0000 (09:39 -0500)
Signed-off-by: Jason Stephenson <jstephenson@mvlc.org>
Open-ILS/src/sql/Pg/reporter-schema.sql

index 25532b6..1fc04f4 100644 (file)
@@ -271,14 +271,6 @@ SELECT     id,
        END AS bib_record
   FROM action.hold_request ahr;
 
-CREATE OR REPLACE VIEW reporter.xact_billing_totals AS
-SELECT b.xact,
-       SUM( CASE WHEN b.voided THEN 0 ELSE amount END ) as unvoided,
-       SUM( CASE WHEN b.voided THEN amount ELSE 0 END ) as voided,
-       SUM( amount ) as total
-  FROM money.billing b
-  GROUP BY 1;
-
 CREATE OR REPLACE VIEW reporter.xact_paid_totals AS
 SELECT b.xact,
        SUM( CASE WHEN b.voided THEN 0 ELSE amount END ) as unvoided,