Bug 40671: (QA follow-up) Fix hardcoded currency symbol

It could be before or after the amount. Assuming that it does not
contain digits itself ;)

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit f14e2c3dcc)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
Marcel de Rooy 2025-08-29 09:58:35 +02:00 committed by Paul Derscheid
parent 6cc8135ad1
commit 9c6bf26175
No known key found for this signature in database
GPG Key ID: C25F9FD44CED595B
1 changed files with 3 additions and 3 deletions

View File

@ -702,8 +702,8 @@ subtest do_checkin => sub {
$item->barcode, C4::SIP::Sip::timestamp, undef, $library->branchcode, undef, undef,
$server->{account}
);
is(
$circ->{screen_msg}, 'You owe $12.00 for this item.',
like(
$circ->{screen_msg}, qr/^You owe \D*12\D/,
"The fine is displayed on checkin when show_outstanding_amount is enabled"
);
@ -943,7 +943,7 @@ subtest do_checkout_with_patron_blocked => sub {
$server->{account}->{show_outstanding_amount} = 1;
$circ = $ils->checkout( $fines_patron->cardnumber, $item->barcode, undef, undef, $server->{account} );
is( $circ->{screen_msg}, 'Patron has fines - You owe $10.00.', "Got correct fines with amount screen message" );
like( $circ->{screen_msg}, qr/Patron has fines - You owe \D*10\D/, "Got correct fines with amount screen message" );
my $debarred_patron = $builder->build_object(
{
class => 'Koha::Patrons',