Bugzilla – Attachment 72036 Details for
Bug 18790
Add ability to void payments
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18790: Add logging for voided payments
Bug-18790-Add-logging-for-voided-payments.patch (text/plain), 1.53 KB, created by
Josef Moravec
on 2018-02-21 16:48:22 UTC
(
hide
)
Description:
Bug 18790: Add logging for voided payments
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2018-02-21 16:48:22 UTC
Size:
1.53 KB
patch
obsolete
>From 048965a54ac70784a5ea2b19f6ea11cb5dbf32e9 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatetsolutions.com> >Date: Wed, 21 Feb 2018 07:03:17 -0500 >Subject: [PATCH] Bug 18790: Add logging for voided payments > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > Koha/Account/Line.pm | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index c060b31..6e4648e 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -18,6 +18,9 @@ package Koha::Account::Line; > use Modern::Perl; > > use Carp; >+use Data::Dumper; >+ >+use C4::Log qw(logaction); > > use Koha::Database; > use Koha::Account::Offsets; >@@ -69,6 +72,22 @@ sub void { > )->store(); > } > >+ if ( C4::Context->preference("FinesLog") ) { >+ logaction("FINES", 'VOID', $self->borrowernumber, Dumper({ >+ action => 'void_payment', >+ borrowernumber => $self->borrowernumber,, >+ amount => $self->amount, >+ amountoutstanding => $self->amountoutstanding, >+ description => $self->description, >+ accounttype => $self->accounttype, >+ payment_type => $self->payment_type, >+ note => $self->note, >+ itemnumber => $self->itemnumber, >+ manager_id => $self->manager_id, >+ offsets => [ map { $_->unblessed } @account_offsets ], >+ })); >+ } >+ > $self->set( > { > accounttype => 'VOID', >-- >2.1.4
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 18790
:
64210
|
65468
|
65932
|
67478
|
69158
|
69159
|
69161
|
72017
|
72018
|
72019
|
72020
|
72021
|
72035
|
72036
|
72037
|
74157
|
74158
|
74159
|
74160
|
74161
|
74162
|
74576