Bugzilla – Attachment 92059 Details for
Bug 23321
Add 'cash registers' to the accounts system
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23321: Add cash register preference
Bug-23321-Add-cash-register-preference.patch (text/plain), 5.31 KB, created by
Martin Renvoize (ashimema)
on 2019-08-08 11:32:07 UTC
(
hide
)
Description:
Bug 23321: Add cash register preference
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-08-08 11:32:07 UTC
Size:
5.31 KB
patch
obsolete
>From 2a92d9a1a3de9bcc23b35fb232055aef5a2af04f Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 18 Jul 2019 08:02:31 +0100 >Subject: [PATCH] Bug 23321: Add cash register preference > >--- > .../mysql/atomicupdate/bug_23321_preferences.perl | 11 +++++++++++ > installer/data/mysql/sysprefs.sql | 1 + > .../intranet-tmpl/prog/en/includes/prefs-menu.inc | 1 + > .../en/modules/admin/preferences/accounts.pref | 15 +++++++++++++++ > .../en/modules/admin/preferences/circulation.pref | 8 -------- > 5 files changed, 28 insertions(+), 8 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 a0d1132d25..b5f8fef9f8 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -640,6 +640,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 @@ > <div id="menu"> > <ul> >+[% IF ( accounts ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Accounts" href="/cgi-bin/koha/admin/preferences.pl?tab=accounts">Accounts</a></li> > [% IF ( acquisitions ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Acquisitions" href="/cgi-bin/koha/admin/preferences.pl?tab=acquisitions">Acquisitions</a></li> > [% IF ( admin ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Administration" href="/cgi-bin/koha/admin/preferences.pl?tab=admin">Administration</a></li> > [% IF ( authorities ) %]<li class="active">[% ELSE %]<li>[% END %]<a title="Authority Control" href="/cgi-bin/koha/admin/preferences.pl?tab=authorities">Authorities</a></li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounts.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounts.pref >new file mode 100644 >index 0000000000..420ed6f081 >--- /dev/null >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounts.pref >@@ -0,0 +1,15 @@ >+Accounts: >+ Policy: >+ - >+ - pref: UseCashRegisters >+ default: no >+ choices: >+ yes: "Use" >+ no: "Don't use" >+ - " cash registers with the accounting system to track payments." >+ - >+ - pref: AccountAutoReconcile >+ choices: >+ yes: "Do" >+ no: "Do not" >+ - reconcile patron balances automatically on each transaction adding debits or credits. >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 15085b6b3d..d5ea2656cf 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,14 +158,6 @@ 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: AutoReturnCheckedOutItems >-- >2.20.1
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 23321
:
91596
|
91597
|
91598
|
91599
|
91600
|
91601
|
91602
|
91621
|
92057
|
92058
|
92059
|
92060
|
92061
|
92062
|
92063
|
92064
|
92065
|
92083
|
92084
|
92085
|
92086
|
92087
|
92088
|
92089
|
92090
|
92091
|
92394
|
92395
|
92396
|
92397
|
92398
|
92399
|
92400
|
92401
|
92402
|
92467
|
92468
|
92469
|
92470
|
92471
|
92472
|
92473
|
92474
|
92475
|
92803
|
92804
|
92805
|
92806
|
92807
|
92808
|
92809
|
92810
|
92811
|
92812
|
92813
|
92814
|
92829
|
92879
|
92880
|
92881
|
92882
|
92883
|
92884
|
92885
|
92886
|
92887
|
92888
|
92889
|
93019
|
93020
|
93021
|
93022
|
93023
|
93024
|
93025
|
93026
|
93027
|
93028
|
93029
|
93030
|
93031
|
93032
|
93033
|
93034
|
93035
|
93188