@@ -, +, @@ --- installer/data/mysql/atomicupdate/21915.perl | 9 +++++++++ installer/data/mysql/sysprefs.sql | 1 + .../prog/en/modules/admin/preferences/circulation.pref | 8 ++++++++ 3 files changed, 18 insertions(+) create mode 100644 installer/data/mysql/atomicupdate/21915.perl --- a/installer/data/mysql/atomicupdate/21915.perl +++ a/installer/data/mysql/atomicupdate/21915.perl @@ -0,0 +1,9 @@ +$DBversion = 'XXX'; +if( CheckVersion( $DBversion ) ) { + $dbh->do(q{ + INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES + ('AccountAutoReconcile','0','If enabled, patron balances will get reconciled automatically on each transaction.',NULL,'YesNo'); + }); + SetVersion($DBversion); + print "Upgrade to $DBversion done (Bug 21915 - Add a way to automatically reconcile balance for patrons)\n"; +} --- a/installer/data/mysql/sysprefs.sql +++ a/installer/data/mysql/sysprefs.sql @@ -1,4 +1,5 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES +('AccountAutoReconcile','0',NULL,'If enabled, patron balances will get reconciled automatically on each transaction.','YesNo'), ('AcqCreateItem','ordering','ordering|receiving|cataloguing','Define when the item is created : when ordering, when receiving, or in cataloguing module','Choice'), ('AcqEnableFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to invoice records.','YesNo'), ('AcqItemSetSubfieldsWhenReceiptIsCancelled','', '','Upon cancelling a receipt, update the items subfields if they were created when placing an order (e.g. o=5|a="bar foo")', 'Free'), --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref @@ -158,6 +158,14 @@ Circulation: no: "Don't allow" - patrons to submit notes about checked out items. + Accounts: + - + - pref: AccountAutoReconcile + choices: + yes: "Do" + no: "Do not" + - reconcile patron balances automatically on each transaction adding debits or credits. + Checkout Policy: - - pref: AllowTooManyOverride --