From 4563877e3545812a028c223344b92d68d7e9a6a2 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 18 Jul 2019 08:02:31 +0100 Subject: [PATCH] Bug 23321: Add cash register preference Sponsored-by: PTFS Europe Sponsored-by: Cheshire Libraries Shared Services Signed-off-by: Maryse Simard Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize --- .../atomicupdate/bug_23321_preferences.perl | 11 ++++++++++ installer/data/mysql/sysprefs.sql | 1 + .../prog/en/includes/prefs-menu.inc | 1 + .../modules/admin/preferences/accounts.pref | 21 +++++++++++++++++++ .../admin/preferences/circulation.pref | 14 ------------- 5 files changed, 34 insertions(+), 14 deletions(-) create mode 100644 installer/data/mysql/atomicupdate/bug_23321_preferences.perl create mode 100644 koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounts.pref diff --git a/installer/data/mysql/atomicupdate/bug_23321_preferences.perl b/installer/data/mysql/atomicupdate/bug_23321_preferences.perl new file mode 100644 index 0000000000..b757933d17 --- /dev/null +++ b/installer/data/mysql/atomicupdate/bug_23321_preferences.perl @@ -0,0 +1,11 @@ +$DBversion = 'XXX'; # will be replaced by the RM +if ( CheckVersion($DBversion) ) { + + $dbh->do(qq{ + INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES + ('UseCashRegisters','0','','Use cash registers with the accounting system and assign patron transactions to them.','YesNo') + }); + + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 23321 - Add cash register system preference)\n"; +} diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql index 6ce6ee15e0..5b916426bf 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -646,6 +646,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` ('UseACQFrameworkForBiblioRecords','0','','Use the ACQ framework for the catalog details','YesNo'), ('UseAuthoritiesForTracings','1','0','Use authority record numbers for subject tracings instead of heading strings.','YesNo'), ('UseBranchTransferLimits','0','','If ON, Koha will will use the rules defined in branch_transfer_limits to decide if an item transfer should be allowed.','YesNo'), +('UseCashRegisters','0','','Use cash registers with the accounting system and assign patron transactions to them.','YesNo'), ('UseControlNumber','0','','If ON, record control number (w subfields) and control number (001) are used for linking of bibliographic records.','YesNo'), ('UseCourseReserves','0',NULL,'Enable the course reserves feature.','YesNo'), ('useDaysMode','Calendar','Calendar|Days|Datedue','Choose the method for calculating due date: select Calendar to use the holidays module, and Days to ignore the holidays module','Choice'), diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc index 3b2e2f75ed..b337291cc1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc @@ -1,5 +1,6 @@