Bugzilla – Attachment 178872 Details for
Bug 39219
Error when issuing a refund on a partial payment from the transaction table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39219: Do not apply amountoutstanding when credit type is REFUND
Bug-39219-Do-not-apply-amountoutstanding-when-cred.patch (text/plain), 1.10 KB, created by
Lucas Gass (lukeg)
on 2025-02-28 20:38:56 UTC
(
hide
)
Description:
Bug 39219: Do not apply amountoutstanding when credit type is REFUND
Filename:
MIME Type:
Creator:
Lucas Gass (lukeg)
Created:
2025-02-28 20:38:56 UTC
Size:
1.10 KB
patch
obsolete
>From 0d6f42ba5f101c67ecc0c998743766da84826ec4 Mon Sep 17 00:00:00 2001 >From: Lucas Gass <lucas@bywatersolutions.com> >Date: Fri, 28 Feb 2025 20:38:29 +0000 >Subject: [PATCH] Bug 39219: Do not apply amountoutstanding when credit type is > REFUND > >--- > Koha/Account/Line.pm | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > >diff --git a/Koha/Account/Line.pm b/Koha/Account/Line.pm >index 851ebec7551..9f4b503d276 100644 >--- a/Koha/Account/Line.pm >+++ b/Koha/Account/Line.pm >@@ -638,9 +638,10 @@ sub apply { > )->store(); > > $available_credit -= $amount_to_cancel; >- >- $self->amountoutstanding( $available_credit * -1 )->store; >- $debit->amountoutstanding( $owed - $amount_to_cancel )->store; >+ if ( $self->credit_type_code ne 'REFUND' ) { >+ $self->amountoutstanding( $available_credit * -1 )->store; >+ $debit->amountoutstanding( $owed - $amount_to_cancel )->store; >+ } > > # Attempt to renew the item associated with this debit if > # appropriate >-- >2.39.5
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 39219
: 178872