Bugzilla – Attachment 87633 Details for
Bug 22511
Koha::Account::Line->void loses the original type of the credit
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22511: Update void method to use status
Bug-22511-Update-void-method-to-use-status.patch (text/plain), 1.39 KB, created by
Martin Renvoize (ashimema)
on 2019-04-09 16:27:05 UTC
(
hide
)
Description:
Bug 22511: Update void method to use status
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-04-09 16:27:05 UTC
Size:
1.39 KB
patch
obsolete
>From 5fd9fe8be96724b79b605553f869547eb020552d Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 15 Mar 2019 14:07:24 +0000 >Subject: [PATCH] Bug 22511: Update void method to use status > >We added a 'status' field to 'accountlines' in bug 22512 to allow for >more fined grained control over 'types' and 'states'. > >This patch updates the void method to utilise this new field so we may >keep the original credit type for later auditing should it be required. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/Account/Line.pm | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index d2ac161e82..aba318317d 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -71,7 +71,11 @@ sub checkout { > > =head3 void > >-$payment_accountline->void(); >+ $payment_accountline->void(); >+ >+Used to 'void' (or reverse) a payment/credit. It will role back any offsets >+created by the application of this credit upon any debits and mark the credit >+as 'void' by updating it's status to "VOID". > > =cut > >@@ -133,7 +137,7 @@ sub void { > > $self->set( > { >- accounttype => 'VOID', >+ status => 'VOID', > amountoutstanding => 0, > amount => 0, > } >-- >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 22511
:
86674
|
86675
|
86903
|
86904
|
86905
|
86915
|
86916
|
86917
|
87088
|
87089
|
87090
|
87091
|
87221
|
87222
|
87223
|
87224
|
87632
|
87633
|
87634
|
87635
|
87650
|
87651
|
87652
|
87653
|
87654
|
87704
|
87706
|
87796
|
87797
|
87798
|
87799
|
87800
|
87869
|
87870
|
87871
|
87872
|
87873
|
88707
|
88708
|
88709
|
88710
|
88711
|
88712
|
88713
|
88714
|
88715
|
88748