From 98b260534a2691d66fb5bf3f6ec275c5d3e49c0b Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Tue, 11 Jun 2024 10:43:24 +0000 Subject: [PATCH] Bug 28575: Add a new check-in message for the new syspref Signed-off-by: Andrew Fuerste Henry Signed-off-by: Nick Clemens Signed-off-by: Katrin Fischer --- C4/Circulation.pm | 2 ++ circ/returns.pl | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 2 ++ 3 files changed, 10 insertions(+) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 46c14732a8..2bd5efca49 100644 --- a/C4/Circulation.pm +++ b/C4/Circulation.pm @@ -2318,6 +2318,8 @@ sub AddReturn { if $message->message eq 'processing_refunded'; $messages->{'LostItemFeeRestored'} = 1 if $message->message eq 'lost_restored'; + $messages->{'LostItemPaymentNotRefunded'} = 1 + if $message->message eq 'payment_not_refunded'; if ( $message->message eq 'lost_charge' ) { $issue //= Koha::Old::Checkouts->search( diff --git a/circ/returns.pl b/circ/returns.pl index b57e64a920..e41cf9ab26 100755 --- a/circ/returns.pl +++ b/circ/returns.pl @@ -703,6 +703,12 @@ foreach my $code ( keys %$messages ) { elsif ( $code eq 'LostItemFeeRefunded' ) { $template->param( LostItemFeeRefunded => 1 ); } + elsif ( + $code eq 'LostItemPaymentNotRefunded' + ) + { + $template->param( LostItemPaymentNotRefunded => 1 ); + } elsif ( $code eq 'LostItemFeeCharged' ) { $template->param( LostItemFeeCharged => 1 ); } diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index 9d14bf5ecd..2b2c71fafc 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -347,6 +347,8 @@

A refund for the lost item charge has been applied to the borrowing patron's account, and new overdue charge has been calculated and applied.

[% ELSIF LostItemFeeRestored and not Koha.Preference('BlockReturnOfLostItems') %]

A refund for the lost item charge has been applied to the borrowing patron's account and if an overdue fine was forgiven when the item was marked as lost, it has been reverted.

+ [% ELSIF LostItemPaymentNotRefunded and not Koha.Preference('BlockReturnOfLostItems') %] +

No refund was applied to the patron's account for the previously paid lost item charge as the payment was made more than [% Koha.Preference('NoRefundOnLostFinesPaidAge') | html%] days ago.

[% ELSIF Koha.Preference('BlockReturnOfLostItems') %]
Cannot check in

NOT CHECKED IN

-- 2.39.5