Add a row for delivered_but_lost, with keep_debits = TRUE.
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/0242.schema.acq-cancel-reason-keep-debits.sql
M Open-ILS/src/sql/Pg/950.data.seed-values.sql
M Open-ILS/examples/fm_IDL.xml
git-svn-id: svn://svn.open-ils.org/ILS/trunk@16330
dcc99617-32d9-48b4-a31d-
7c20da2025e4
<field reporter:label="Using Library" name="org_unit" reporter:datatype="org_unit"/>
<field reporter:label="Label" name="label" reporter:datatype="text"/>
<field reporter:label="Description" name="description" reporter:datatype="text"/>
+ <field reporter:label="Keep Debits?" name="keep_debits" reporter:datatype="bool"/>
</fields>
<links>
<link field="org_unit" reltype="has_a" key="id" map="" class="aou"/>
install_date TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT NOW()
);
-INSERT INTO config.upgrade_log (version) VALUES ('0241'); -- Scott McKellar
+INSERT INTO config.upgrade_log (version) VALUES ('0242'); -- Scott McKellar
CREATE TABLE config.bib_source (
id SERIAL PRIMARY KEY,
DEFERRABLE INITIALLY DEFERRED,
label TEXT NOT NULL,
description TEXT NOT NULL,
+ keep_debits BOOL NOT NULL DEFAULT FALSE,
CONSTRAINT acq_cancel_reason_one_per_org_unit UNIQUE( org_unit, label )
);
1, 1, 'invalid_isbn', oils_i18n_gettext( 1, 'ISBN is unrecognizable', 'acqcr', 'label' ));
INSERT INTO acq.cancel_reason ( id, org_unit, label, description ) VALUES (
2, 1, 'postpone', oils_i18n_gettext( 2, 'Title has been postponed', 'acqcr', 'label' ));
-
+INSERT INTO acq.cancel_reason ( id, org_unit, label, description, keep_debits ) VALUES (
+ 3, 1, 'delivered_but_lost',
+ oils_i18n_gettext( 2, 'Delivered but not received; presumed lost', 'acqcr', 'label' ), TRUE );
INSERT INTO config.org_unit_setting_type ( name, label, description, datatype )
VALUES (
--- /dev/null
+BEGIN;
+
+INSERT INTO config.upgrade_log (version) VALUES ('0242'); -- Scott McKellar
+
+ALTER TABLE acq.cancel_reason
+ ADD COLUMN keep_debits BOOL NOT NULL DEFAULT FALSE;
+
+INSERT INTO acq.cancel_reason ( id, org_unit, label, description, keep_debits ) VALUES (
+ 3, 1, 'delivered_but_lost',
+ oils_i18n_gettext( 2, 'Delivered but not received; presumed lost', 'acqcr', 'label' ), TRUE );
+
+COMMIT;