[open-ils-commits] r12545 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Mar 16 15:40:15 EDT 2009
Author: miker
Date: 2009-03-16 15:40:11 -0400 (Mon, 16 Mar 2009)
New Revision: 12545
Modified:
trunk/Open-ILS/src/sql/Pg/080.schema.money.sql
Log:
incorrect table name in stored proc for updating materialized transaction summary
Modified: trunk/Open-ILS/src/sql/Pg/080.schema.money.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/080.schema.money.sql 2009-03-16 19:00:43 UTC (rev 12544)
+++ trunk/Open-ILS/src/sql/Pg/080.schema.money.sql 2009-03-16 19:40:11 UTC (rev 12545)
@@ -314,7 +314,7 @@
BEGIN
SELECT * INTO old_billing FROM money.billing WHERE xact = NEW.xact AND NOT voided ORDER BY billing_ts DESC LIMIT 1;
- SELECT * INTO old_voided FROM money.payment_view WHERE xact = NEW.xact ORDER BY payment_ts DESC LIMIT 1;
+ SELECT * INTO old_voided FROM money.billing WHERE xact = NEW.xact ORDER BY billing_ts DESC LIMIT 1;
IF NEW.voided AND NOT OLD.voided THEN
IF OLD.id = old_voided.id THEN
More information about the open-ils-commits
mailing list