Bugzilla – Attachment 92949 Details for
Bug 23355
Add a 'cashup' process to accounts
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23355: Add relations to Koha::Account::Line
Bug-23355-Add-relations-to-KohaAccountLine.patch (text/plain), 1.43 KB, created by
Martin Renvoize (ashimema)
on 2019-09-18 14:59:21 UTC
(
hide
)
Description:
Bug 23355: Add relations to Koha::Account::Line
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-09-18 14:59:21 UTC
Size:
1.43 KB
patch
obsolete
>From 052d0d2e2e190d4ae4135e40fa28234dd2673572 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 13 Sep 2019 14:03:11 +0100 >Subject: [PATCH] Bug 23355: Add relations to Koha::Account::Line > >This patch adds two new relationships to the Koha::Account::Line object. > >* credit_offsets - returns all credit type Koha::Account::Offsets > related to this Koha::Account::Line. >* debit_offsets - returns all debit type Koha::Account::Offsets related > to this Koha::Account::Line. >--- > Koha/Account/Line.pm | 26 ++++++++++++++++++++++++++ > 1 file changed, 26 insertions(+) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index f4f9498ee1..824b050d05 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -82,6 +82,32 @@ sub checkout { > return $self->{_checkout}; > } > >+=head3 credit_offsets >+ >+Return the credit_offsets linked to this account line if some exist >+ >+=cut >+ >+sub credit_offsets { >+ my ( $self ) = @_; >+ my $rs = $self->_result->account_offsets_credits; >+ return unless $rs; >+ return Koha::Account::Offsets->_new_from_dbic( $rs ); >+} >+ >+=head3 debit_offsets >+ >+Return the debit_offsets linked to this account line if some exist >+ >+=cut >+ >+sub debit_offsets { >+ my ( $self ) = @_; >+ my $rs = $self->_result->account_offsets_debits; >+ return unless $rs; >+ return Koha::Account::Offsets->_new_from_dbic( $rs ); >+} >+ > =head3 void > > $payment_accountline->void(); >-- >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 23355
:
92941
|
92942
|
92943
|
92944
|
92945
|
92946
|
92947
|
92948
|
92949
|
92950
|
92951
|
92952
|
92953
|
97031
|
97032
|
97033
|
97034
|
97035
|
97036
|
97037
|
97038
|
97039
|
97040
|
97041
|
97043
|
97044
|
97045
|
97046
|
97047
|
97048
|
97049
|
97050
|
97051
|
97052
|
97053
|
97054
|
97077
|
97078
|
97079
|
97080
|
97081
|
97082
|
97083
|
97084
|
97085
|
97086
|
97087
|
97088
|
97089
|
97706
|
97707
|
97708
|
97709
|
97710
|
97711
|
97712
|
97713
|
97714
|
97715
|
97716
|
97784
|
97785
|
97786
|
97787
|
97788
|
97789
|
97790
|
97791
|
97792
|
97793
|
97794
|
97816
|
97817
|
97818
|
97819
|
97820
|
97821
|
97822
|
97823
|
98026
|
98027
|
98028
|
98835
|
98836
|
98837
|
98838
|
98839
|
98840
|
98841
|
98842
|
100009
|
100010
|
100011
|
100012
|
100013
|
100014
|
100015
|
100016
|
100017
|
100018
|
100019
|
100020
|
100021
|
100030
|
100090
|
101685