[open-ils-commits] r16186 - in trunk/Open-ILS: examples src/sql/Pg src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Apr 8 19:57:35 EDT 2010
Author: scottmk
Date: 2010-04-08 19:57:34 -0400 (Thu, 08 Apr 2010)
New Revision: 16186
Added:
trunk/Open-ILS/src/sql/Pg/upgrade/0231.schema.acq-inv-amt-paid.sql
Modified:
trunk/Open-ILS/examples/fm_IDL.xml
trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
Log:
Adding amount_paid columns to acq.invoice_item, acq.invoice_entry.
M Open-ILS/src/sql/Pg/200.schema.acq.sql
M Open-ILS/src/sql/Pg/002.schema.config.sql
A Open-ILS/src/sql/Pg/upgrade/0231.schema.acq-inv-amt-paid.sql
M Open-ILS/examples/fm_IDL.xml
Modified: trunk/Open-ILS/examples/fm_IDL.xml
===================================================================
--- trunk/Open-ILS/examples/fm_IDL.xml 2010-04-08 23:17:15 UTC (rev 16185)
+++ trunk/Open-ILS/examples/fm_IDL.xml 2010-04-08 23:57:34 UTC (rev 16186)
@@ -4679,6 +4679,7 @@
<field reporter:label="Billed Cost per Item" name="billed_per_item" reporter:datatype="bool" />
<field reporter:label="Cost Billed" name="cost_billed" reporter:datatype="money" />
<field reporter:label="Actual Cost" name="actual_cost" reporter:datatype="money" />
+ <field reporter:label="Amount Paid" name="amount_paid" reporter:datatype="money" />
</fields>
<links>
<link field="invoice" reltype="has_a" key="id" map="" class="acqinv"/>
@@ -4716,6 +4717,7 @@
<field reporter:label="Cost Billed" name="cost_billed" reporter:datatype="money" />
<field reporter:label="Actual Cost" name="actual_cost" reporter:datatype="money" />
<field reporter:label="Fund" name="fund" reporter:datatype="link" />
+ <field reporter:label="Amount Paid" name="amount_paid" reporter:datatype="money" />
</fields>
<links>
<link field="invoice" reltype="has_a" key="id" map="" class="acqinv"/>
Modified: trunk/Open-ILS/src/sql/Pg/002.schema.config.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-08 23:17:15 UTC (rev 16185)
+++ trunk/Open-ILS/src/sql/Pg/002.schema.config.sql 2010-04-08 23:57:34 UTC (rev 16186)
@@ -60,7 +60,7 @@
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0230'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0231'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
Modified: trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-08 23:17:15 UTC (rev 16185)
+++ trunk/Open-ILS/src/sql/Pg/200.schema.acq.sql 2010-04-08 23:57:34 UTC (rev 16186)
@@ -815,7 +815,8 @@
note TEXT,
billed_per_item BOOL,
cost_billed NUMERIC(8,2),
- actual_cost NUMERIC(8,2)
+ actual_cost NUMERIC(8,2),
+ amount_paid NUMERIC (8,2)
);
CREATE TABLE acq.invoice_item_type (
@@ -836,7 +837,8 @@
cost_billed NUMERIC(8,2),
actual_cost NUMERIC(8,2),
fund INT REFERENCES acq.fund (id)
- DEFERRABLE INITIALLY DEFERRED
+ DEFERRABLE INITIALLY DEFERRED,
+ amount_paid NUMERIC (8,2)
);
-- Patron requests
Added: trunk/Open-ILS/src/sql/Pg/upgrade/0231.schema.acq-inv-amt-paid.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0231.schema.acq-inv-amt-paid.sql (rev 0)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0231.schema.acq-inv-amt-paid.sql 2010-04-08 23:57:34 UTC (rev 16186)
@@ -0,0 +1,11 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0231'); -- Scott McKellar
+
+ALTER TABLE acq.invoice_item
+ ADD COLUMN amount_paid NUMERIC (8,2);
+
+ALTER TABLE acq.invoice_entry
+ ADD COLUMN amount_paid NUMERIC (8,2);
+
+COMMIT;
More information about the open-ils-commits
mailing list