From a7518b5ba42f4be44fa7b64ee4124f08d5cb517b 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 Signed-off-by: Maryse Simard --- .../mysql/atomicupdate/bug_23321_preferences.perl | 11 +++++++++++ installer/data/mysql/sysprefs.sql | 1 + .../intranet-tmpl/prog/en/includes/prefs-menu.inc | 1 + .../prog/en/modules/admin/preferences/accounts.pref | 21 +++++++++++++++++++++ .../en/modules/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 0000000..b757933 --- /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 82a8402..208d9b3 100644 --- a/installer/data/mysql/sysprefs.sql +++ b/installer/data/mysql/sysprefs.sql @@ -642,6 +642,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 3b2e2f7..b337291 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 @@