Koha/installer/data/mysql/mandatory/auth_val_cat.sql
Martin Renvoize 72e10519e3
Bug 23049: Add debit_type
* Add account_debit_types table
* Add ac_debit_types_branches table
* Add account_debit_types defaults
* Add Koha::Account::DebitType and Koha::Account::DebitTypes
* Prevent deletion of defaults
* Migrate MANUAL_INV values
* Remove MANUAL_INV references
* Migrate accounttype values

Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-24 17:23:48 +01:00

63 lines
1.3 KiB
SQL

INSERT IGNORE INTO authorised_value_categories( category_name )
VALUES
(''),
('Asort1'),
('Asort2'),
('Bsort1'),
('Bsort2'),
('SUGGEST'),
('SUGGEST_STATUS'),
('SUGGEST_FORMAT'),
('DAMAGED'),
('LOST'),
('REPORT_GROUP'),
('REPORT_SUBGROUP'),
('DEPARTMENT'),
('TERM'),
('ITEMTYPECAT'),
('PAYMENT_TYPE'),
('PA_CLASS'),
('ROADTYPE');
INSERT IGNORE INTO authorised_value_categories( category_name )
VALUES
('branches'),
('itemtypes'),
('cn_source');
INSERT IGNORE INTO authorised_value_categories( category_name )
VALUES
('WITHDRAWN'),
('RESTRICTED'),
('NOT_LOAN'),
('CCODE'),
('LOC'),
('BOR_NOTES'),
('OPAC_SUG'),
('SIP_MEDIA_TYPE'),
('ORDER_CANCELLATION_REASON'),
('RELTERMS'),
('YES_NO'),
('LANG'),
('HINGS_UT'),
('HINGS_PF'),
('HINGS_C'),
('HINGS_AS'),
('HINGS_RD'),
('STACK'),
('CONTROL_NUM_SEQUENCE');
-- UNIMARC specific?
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES
('ETAT'),
('CAND'),
('COUNTRY'),
('qualif');
-- For Housebound
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES
('HSBND_FREQ');
-- For Interlibrary loans
INSERT IGNORE INTO authorised_value_categories( category_name ) VALUES
('ILLSTATUS');