diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt index a853880cca..b2bad74872 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt @@ -76,7 +76,7 @@
  • Example: 5.00
  • - [% INCLUDE 'transaction_types.inc' %] + [% INCLUDE 'transaction_types.inc' type="credit" %] [% IF Koha.Preference('UseCashRegisters') %]
  • [% IF Koha.Preference('RequireCashRegister') %] diff --git a/members/mancredit.pl b/members/mancredit.pl index 4decab72b5..e77c82defc 100755 --- a/members/mancredit.pl +++ b/members/mancredit.pl @@ -86,11 +86,11 @@ if ($add) { my $item = Koha::Items->find( { barcode => $barcode } ); $item_id = $item->itemnumber if $item; } - my $description = $input->param('desc'); - my $note = $input->param('note'); - my $amount = $input->param('amount') || 0; - my $type = $input->param('type'); - my $payment_type = $input->param('payment_type'); + my $description = $input->param('desc'); + my $note = $input->param('note'); + my $amount = $input->param('amount') || 0; + my $type = $input->param('type'); + my $credit_type = $input->param('credit_type'); my $cash_register_id = $input->param('cash_register'); my $line = $patron->account->add_credit( @@ -103,7 +103,7 @@ if ($add) { type => $type, user_id => $logged_in_user->id, interface => C4::Context->interface, - payment_type => $payment_type, + payment_type => $credit_type, cash_register => $cash_register_id } );