Bug 9762: (follow-up) Fix failing Circulation.t test

The test was failing with RegisterRequired exception because payin_amount()
requires a cash register when UseCashRegisters preference is enabled.

Fixed by setting UseCashRegisters to 0 in the lost item return policies test
to allow payments without requiring a cash register.

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 4bcbbd8722)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Martin Renvoize 2025-08-27 14:42:18 +01:00 committed by Paul Derscheid
parent 71e462f7ef
commit df6a9ab122
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 1 additions and 0 deletions

View File

@ -4111,6 +4111,7 @@ subtest 'AddReturn | is_overdue' => sub {
'NoRefundOnLostReturnedItemsAge',
undef
);
t::lib::Mocks::mock_preference( 'UseCashRegisters', 0 );
subtest 'lostreturn | refund_unpaid' => sub {
plan tests => 21;