From 7b1f713fa2f8bb064bc64eecce53b6a467bed937 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 22 Jan 2020 10:49:55 +0000 Subject: [PATCH] Bug 24478: Add `EnablePointOfSale` system preference Signed-off-by: Katrin Fischer --- installer/data/mysql/atomicupdate/bug_24478.perl | 10 ++++++++++ installer/data/mysql/sysprefs.sql | 1 + 2 files changed, 11 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/bug_24478.perl diff --git a/installer/data/mysql/atomicupdate/bug_24478.perl b/installer/data/mysql/atomicupdate/bug_24478.perl new file mode 100644 index 0000000000..ffe5f4fdba --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_24478.perl @@ -0,0 +1,10 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if( CheckVersion( $DBversion ) ) { + $dbh->do(qq{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES + ('EnablePointOfSale','0',NULL,'Enable the point of sale feature to allow anonymous transactions with the accounting system. (Requires UseCashRegisters)','YesNo') + }); + + SetVersion( $DBversion ); + print "Upgrade to $DBversion done (Bug 24478 - Add `EnablePointOfSale` system preference to allow disabling the point of sale feature)\n"; +} diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 5a4fa4c3a9..d4138ac033 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -171,6 +171,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'), ('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'), ('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'), +('EnablePointOfSale','0',NULL,'Enable the point of sale feature to allow anonymous transactions with the accounting system. (Requires UseCashRegisters)','YesNo') ('EnableOpacSearchHistory','1','YesNo','Enable or disable opac search history',''), ('EnableSearchHistory','0','','Enable or disable search history','YesNo'), ('EnhancedMessagingPreferences','1','','If ON, allows patrons to select to receive additional messages about items due or nearly due.','YesNo'), -- 2.11.0