Bugzilla – Attachment 106956 Details for
Bug 24381
ACCOUNT_CREDIT and ACCOUNT_DEBIT slip not printing information about paid fines/fees
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 25998: Add 'library' relation to Koha::Account::Line
Bug-25998-Add-library-relation-to-KohaAccountLine.patch (text/plain), 942 bytes, created by
Martin Renvoize (ashimema)
on 2020-07-16 16:03:40 UTC
(
hide
)
Description:
Bug 25998: Add 'library' relation to Koha::Account::Line
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2020-07-16 16:03:40 UTC
Size:
942 bytes
patch
obsolete
>From b791e100d80de99fc45051db0ff88276d39f1670 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 16 Jul 2020 09:40:23 +0100 >Subject: [PATCH] Bug 25998: Add 'library' relation to Koha::Account::Line > >https://bugs.koha-community.org/show_bug.cgi?id=24381 >--- > Koha/Account/Line.pm | 13 +++++++++++++ > 1 file changed, 13 insertions(+) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index 155ae4e29b..ce00de0623 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -85,6 +85,19 @@ sub checkout { > return $self->{_checkout}; > } > >+=head3 library >+ >+Returns a Koha::Library object representing where the accountline was recorded >+ >+=cut >+ >+sub library { >+ my ( $self ) = @_; >+ my $rs = $self->_result->branchcode; >+ return unless $rs; >+ return Koha::Library->_new_from_dbic($rs); >+} >+ > =head3 credit_type > > Return the credit_type linked to this account line >-- >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 24381
:
106946
|
106947
|
106950
|
106951
|
106952
|
106953
|
106956
|
106957
|
106958
|
106959
|
106960
|
106974
|
106975
|
106976
|
106977
|
110210
|
110211
|
110212
|
110213
|
110461
|
110462
|
110463
|
110464
|
111530
|
111531
|
111532
|
111533
|
111534
|
111590
|
111591
|
111592
|
111593
|
111594
|
111595
|
116394
|
140868
|
140869
|
140870
|
140871
|
140872
|
140873
|
141619
|
141620
|
141621
|
141622
|
141623
|
142386
|
142387
|
142388
|
142389
|
142390