Bugzilla – Attachment 97762 Details for
Bug 24478
Make it possible to deactivate point of sale
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24478: Add `EnablePointOfSale` system preference
Bug-24478-Add-EnablePointOfSale-system-preference.patch (text/plain), 2.47 KB, created by
Katrin Fischer
on 2020-01-22 23:02:38 UTC
(
hide
)
Description:
Bug 24478: Add `EnablePointOfSale` system preference
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2020-01-22 23:02:38 UTC
Size:
2.47 KB
patch
obsolete
>From 7b1f713fa2f8bb064bc64eecce53b6a467bed937 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Wed, 22 Jan 2020 10:49:55 +0000 >Subject: [PATCH] Bug 24478: Add `EnablePointOfSale` system preference > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > installer/data/mysql/atomicupdate/bug_24478.perl | 10 ++++++++++ > installer/data/mysql/sysprefs.sql | 1 + > 2 files changed, 11 insertions(+) > create mode 100644 installer/data/mysql/atomicupdate/bug_24478.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_24478.perl b/installer/data/mysql/atomicupdate/bug_24478.perl >new file mode 100644 >index 0000000000..ffe5f4fdba >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_24478.perl >@@ -0,0 +1,10 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do(qq{ >+ INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES >+ ('EnablePointOfSale','0',NULL,'Enable the point of sale feature to allow anonymous transactions with the accounting system. (Requires UseCashRegisters)','YesNo') >+ }); >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 24478 - Add `EnablePointOfSale` system preference to allow disabling the point of sale feature)\n"; >+} >diff --git a/installer/data/mysql/sysprefs.sql b/installer/data/mysql/sysprefs.sql >index 5a4fa4c3a9..d4138ac033 100644 >--- a/installer/data/mysql/sysprefs.sql >+++ b/installer/data/mysql/sysprefs.sql >@@ -171,6 +171,7 @@ INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` > ('EmailPurchaseSuggestions','0','0|EmailAddressForSuggestions|BranchEmailAddress|KohaAdminEmailAddress','Choose email address that new purchase suggestions will be sent to: ','Choice'), > ('EnableAdvancedCatalogingEditor','0','','Enable the Rancor advanced cataloging editor','YesNo'), > ('EnableBorrowerFiles','0',NULL,'If enabled, allows librarians to upload and attach arbitrary files to a borrower record.','YesNo'), >+('EnablePointOfSale','0',NULL,'Enable the point of sale feature to allow anonymous transactions with the accounting system. (Requires UseCashRegisters)','YesNo') > ('EnableOpacSearchHistory','1','YesNo','Enable or disable opac search history',''), > ('EnableSearchHistory','0','','Enable or disable search history','YesNo'), > ('EnhancedMessagingPreferences','1','','If ON, allows patrons to select to receive additional messages about items due or nearly due.','YesNo'), >-- >2.11.0
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 24478
:
97702
|
97703
|
97732
|
97733
| 97762 |
97763
|
97764