Bug 41214

Summary: Cash register should only show if UseCashRegisters sys pref is enabled
Product: Koha Reporter: Pedro Amorim <pedro.amorim>
Component: SIP2Assignee: Pedro Amorim <pedro.amorim>
Status: Needs Signoff --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: jonathan.druart, martin.renvoize, matt.blenkinsop, pedro.amorim
Version: Main   
Hardware: All   
OS: All   
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:
Bug Depends on: 37893    
Bug Blocks:    
Attachments: Bug 41214: Only show cash register if UseCashRegisters sys pref is enabled
Bug 41214: Add cypress test

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