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
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16186
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<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"/>
<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"/>
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,
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 (
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
--- /dev/null
+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;