Add boolean column "prorate" to acq.invoice_item_type.
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Apr 2010 14:35:09 +0000 (14:35 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 7 Apr 2010 14:35:09 +0000 (14:35 +0000)
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/0228.schema.acq-invoice-item-type-prorate.sql
M    Open-ILS/examples/fm_IDL.xml

git-svn-id: svn://svn.open-ils.org/ILS/trunk@16153 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/examples/fm_IDL.xml
Open-ILS/src/sql/Pg/002.schema.config.sql
Open-ILS/src/sql/Pg/200.schema.acq.sql
Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql [new file with mode: 0644]

index b8fe012..9294d40 100644 (file)
@@ -874,6 +874,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
                <fields oils_persist:primary="code">
                        <field reporter:label="Code" name="code" reporter:selector="name" reporter:datatype="id"/>
                        <field reporter:label="Label" name="name" reporter:datatype="text" oils_persist:i18n="true"/>
+                       <field reporter:label="Prorate?" name="prorate" reporter:datatype="bool"/>
                </fields>
                <links/>
         <permacrud xmlns="http://open-ils.org/spec/opensrf/IDL/permacrud/v1">
index b612ca7..753412b 100644 (file)
@@ -60,7 +60,7 @@ CREATE TABLE config.upgrade_log (
     install_date    TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
 );
 
-INSERT INTO config.upgrade_log (version) VALUES ('0227'); -- phasefx
+INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- Scott McKellar
 
 CREATE TABLE config.bib_source (
        id              SERIAL  PRIMARY KEY,
index 2950145..ad78809 100644 (file)
@@ -811,7 +811,8 @@ CREATE TABLE acq.invoice_entry (
 
 CREATE TABLE acq.invoice_item_type (
     code    TEXT    PRIMARY KEY,
-    name    TEXT    NOT NULL -- i18n-ize
+    name    TEXT    NOT NULL,  -- i18n-ize
+       prorate BOOL    NOT NULL DEFAULT FALSE
 );
 
 CREATE TABLE acq.invoice_item ( -- for invoice-only debits: taxes/fees/non-bib items/etc
diff --git a/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql b/Open-ILS/src/sql/Pg/upgrade/0228.schema.acq-invoice-item-type-prorate.sql
new file mode 100644 (file)
index 0000000..a3ad758
--- /dev/null
@@ -0,0 +1,8 @@
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0228'); -- Scott McKellar
+
+ALTER TABLE acq.invoice_item_type
+       ADD COLUMN prorate BOOL NOT NULL DEFAULT FALSE;
+
+COMMIT;