Browse Source

Bug 23805: (follow-up) Lowercase credit type for UpdateStats

Signed-off-by: Kyle Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
remotes/origin/19.11.x
Martin Renvoize 5 years ago
parent
commit
66bdfbc0a3
Signed by: martin.renvoize GPG Key ID: 422B469130441A0F
  1. 4
      Koha/Account.pm

4
Koha/Account.pm

@ -247,7 +247,7 @@ sub pay {
UpdateStats( UpdateStats(
{ {
branch => $library_id, branch => $library_id,
type => $type, type => lc($type),
amount => $amount, amount => $amount,
borrowernumber => $self->{patron_id}, borrowernumber => $self->{patron_id},
} }
@ -403,7 +403,7 @@ sub add_credit {
UpdateStats( UpdateStats(
{ {
branch => $library_id, branch => $library_id,
type => $credit_type, type => lc($credit_type),
amount => $amount, amount => $amount,
borrowernumber => $self->{patron_id}, borrowernumber => $self->{patron_id},
} }

Loading…
Cancel
Save