From 3aa09a9e810e05ed1da8c9d2e3ab3c0468dd1d29 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Fri, 7 Nov 2025 10:24:44 +0000 Subject: [PATCH] Bug 41214: Only show cash register if UseCashRegisters sys pref is enabled Test plan: 1) Add a new account: http://localhost:8081/cgi-bin/koha/sip2/accounts/add 2) Notice the 'cash register' field does not show 3) Enable UseCashRegisters sys pref 4) Repeat 1 (or edit an existing account). Refresh the page. 5) Notice the 'cash register' field now shows Signed-off-by: Pedro Amorim Signed-off-by: Matt Blenkinsop --- .../prog/js/vue/components/FormElement.vue | 380 +++++++++--------- .../prog/js/vue/components/SIP2/Main.vue | 20 +- .../components/SIP2/SIP2AccountResource.vue | 4 + .../prog/js/vue/composables/base-resource.js | 1 + .../intranet-tmpl/prog/js/vue/stores/sip2.js | 3 + 5 files changed, 220 insertions(+), 188 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue b/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue index fbdec2a7648..023ff9772a6 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue +++ b/koha-tmpl/intranet-tmpl/prog/js/vue/components/FormElement.vue @@ -1,198 +1,202 @@