From 83a9c309c8a1d0b9db27d5cc77def9dd5ebe5e37 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 23 Jan 2020 15:45:12 +0000 Subject: [PATCH] Bug 23442: (RM follow-up) Fix for missing 'uc' in offset_type call Signed-off-by: Martin Renvoize --- Koha/Account/Line.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm index bd86317bb4..1fac85d10c 100644 --- a/Koha/Account/Line.pm +++ b/Koha/Account/Line.pm @@ -382,7 +382,7 @@ sub reduce { $reduction->apply( { debits => [$self], - offset_type => $params->{reduction_type} + offset_type => uc( $params->{reduction_type} ) } ); $reduction->status('APPLIED')->store(); @@ -394,7 +394,7 @@ sub reduce { { credit_id => $reduction->accountlines_id, debit_id => $self->accountlines_id, - type => $params->{reduction_type}, + type => uc( $params->{reduction_type} ), amount => 0 } )->store(); -- 2.39.5