@@ -, +, @@ --- .../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 --- a/installer/data/mysql/atomicupdate/bug_23321_preferences.perl +++ a/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"; +} --- a/installer/data/mysql/sysprefs.sql +++ a/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'), --- a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/prefs-menu.inc @@ -1,5 +1,6 @@