Bug 41214 - Cash register should only show if UseCashRegisters sys pref is enabled
Summary: Cash register should only show if UseCashRegisters sys pref is enabled
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: SIP2 (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Pedro Amorim
QA Contact: Testopia
URL:
Keywords:
Depends on: 37893
Blocks:
  Show dependency treegraph
 
Reported: 2025-11-07 11:10 UTC by Pedro Amorim
Modified: 2025-11-07 13:57 UTC (History)
4 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41214: Only show cash register if UseCashRegisters sys pref is enabled (20.66 KB, patch)
2025-11-07 11:13 UTC, Pedro Amorim
Details | Diff | Splinter Review
Bug 41214: Add cypress test (1.90 KB, patch)
2025-11-07 13:57 UTC, Pedro Amorim
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Amorim 2025-11-07 11:10:55 UTC

    
Comment 1 Pedro Amorim 2025-11-07 11:13:32 UTC
Created attachment 189263 [details] [review]
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
Comment 2 Jonathan Druart 2025-11-07 13:04:05 UTC
Can we have a cypress test for this?
Comment 3 Pedro Amorim 2025-11-07 13:57:49 UTC
Created attachment 189322 [details] [review]
Bug 41214: Add cypress test

cypress run --spec t/cypress/integration/SIP2/Accounts.ts --config video=false,screenshotOnRunFailure=false