Bugzilla – Attachment 108302 Details for
Bug 26210
issue_id should be consistently set for Lost item handling
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26210: Allow issue_id to be passed to add_credit
Bug-26210-Allow-issueid-to-be-passed-to-addcredit.patch (text/plain), 1.55 KB, created by
Martin Renvoize (ashimema)
on 2020-08-14 16:29:10 UTC
(
hide
)
Description:
Bug 26210: Allow issue_id to be passed to add_credit
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-08-14 16:29:10 UTC
Size:
1.55 KB
patch
obsolete
>From 3b959a207c1cf461722f2a902fe17c22a5bb2c38 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 14 Aug 2020 17:27:07 +0100 >Subject: [PATCH] Bug 26210: Allow issue_id to be passed to add_credit > >This patch add the ability for Koha::Account->add_credit to accept an >issue_id parameter and record it to the accountlines. >--- > Koha/Account.pm | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > >diff --git a/Koha/Account.pm b/Koha/Account.pm >index 2a63856b52..9457db78a4 100644 >--- a/Koha/Account.pm >+++ b/Koha/Account.pm >@@ -352,7 +352,8 @@ my $credit_line = Koha::Account->new({ patron_id => $patron_id })->add_credit( > library_id => $library_id, > payment_type => $payment_type, > type => $credit_type, >- item_id => $item_id >+ item_id => $item_id, >+ issue_id => $issue_id > } > ); > >@@ -394,6 +395,7 @@ sub add_credit { > my $payment_type = $params->{payment_type}; > my $credit_type = $params->{type} || 'PAYMENT'; > my $item_id = $params->{item_id}; >+ my $issue_id = $params->{issue_id}; > > Koha::Exceptions::Account::RegisterRequired->throw() > if ( C4::Context->preference("UseCashRegisters") >@@ -423,6 +425,7 @@ sub add_credit { > branchcode => $library_id, > register_id => $cash_register, > itemnumber => $item_id, >+ issue_id => $issue_id > } > )->store(); > >-- >2.20.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 26210
: 108302