Bugzilla – Attachment 82803 Details for
Bug 21915
Add a way to automatically reconcile balance for patrons
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21915: Add AccountAutoReconcile syspref
Bug-21915-Add-AccountAutoReconcile-syspref.patch (text/plain), 3.07 KB, created by
Kyle M Hall (khall)
on 2018-11-30 19:06:19 UTC
(
hide
)
Description:
Bug 21915: Add AccountAutoReconcile syspref
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2018-11-30 19:06:19 UTC
Size:
3.07 KB
patch
obsolete
>From 19819afd0d5f2ef66b9b03dca63c953952a6fd75 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Thu, 29 Nov 2018 14:55:53 -0300 >Subject: [PATCH] Bug 21915: Add AccountAutoReconcile syspref > >This syspref will be used to call the reconcile_balance routing as >needed. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > 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 > >diff --git a/installer/data/mysql/atomicupdate/21915.perl b/installer/data/mysql/atomicupdate/21915.perl >new file mode 100644 >index 0000000000..afd88eb9bb >--- /dev/null >+++ b/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"; >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 1e36c306c6..b69faebcb7 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/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'), >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >index e67fc81d7b..322badd6fc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref >+++ b/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 >-- >2.17.2 (Apple Git-113)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 21915
:
82762
|
82763
|
82764
|
82765
|
82781
|
82782
|
82784
|
82789
|
82790
|
82791
|
82792
|
82793
|
82803
|
82804
|
82805
|
82806
|
82807
|
82863
|
82864
|
82865
|
82866
|
82867
|
83053
|
83062
|
83063
|
83064
|
83065
|
83066