@@ -, +, @@ - Create a manual credit for a known patron - Using MySQL check the result: $ sudo mysql > SELECT * FROM accountlines WHERE borrowernumber=; - Apply this patch - Create a manual credit for the patron - Run: > SELECT * FROM accountlines WHERE borrowernumber=; -Sign off :-D --- members/mancredit.pl | 3 +++ 1 file changed, 3 insertions(+) --- a/members/mancredit.pl +++ a/members/mancredit.pl @@ -81,10 +81,13 @@ if ($add){ my $amount = $input->param('amount') || 0; my $type = $input->param('type'); + my $library_id = C4::Context->userenv ? C4::Context->userenv->{'branch'} : undef; + $patron->account->add_credit({ amount => $amount, description => $description, item_id => $item_id, + library_id => $library_id, note => $note, type => $type, user_id => $logged_in_user->id --