From c66bd0c0db5e1b53b90729745c8347cdc7af5fef Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 22 Jan 2020 10:51:55 +0000 Subject: [PATCH] Bug 24478: Use `EnablePointOfSale` preference This patch adds the `EnablePointOfSale` preference to the accounting tab on the preferences editor and ties the display of the Point of Sale module to it. Test plan: 1) Enable both `UseCashRegisters` and `EnablePointOfSale` preferences. 2) Ensure you are a superuser or your user has the takepayment permission. 3) The Point of Sale module should be present on your staff home page with the above configuration, otherwhise it should not. --- .../modules/admin/preferences/accounting.pref | 22 +++++++++++++------ .../prog/en/modules/intranet-main.tt | 2 +- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounting.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounting.pref index e990b26bd9..36241161b9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounting.pref +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/accounting.pref @@ -1,12 +1,5 @@ Accounting: Policy: - - - - pref: UseCashRegisters - default: no - choices: - yes: "Use" - no: "Don't use" - - " cash registers with the accounting system to track payments." - - pref: AccountAutoReconcile choices: @@ -19,3 +12,18 @@ Accounting: yes: "Do" no: "Don't" - automatically display a print dialog for a payment receipt when making a payment. + Features: + - + - pref: UseCashRegisters + default: no + choices: + yes: "Use" + no: "Don't use" + - " cash registers with the accounting system to track payments." + - + - pref: EnablePointOfSale + default: no + choices: + yes: "Enable" + no: "Disable" + - " the point of sale feature to allow anonymous transactions with the accounting system. (Requires UseCashRegisters)" diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt index ac800c40c4..4cda8c1d2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -80,7 +80,7 @@