Bugzilla – Attachment 137387 Details for
Bug 27779
Cashup summary 'refunds' should denote what the refund was actioned against
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27779: Update 'REFUND' description in the database
Bug-27779-Update-REFUND-description-in-the-databas.patch (text/plain), 2.15 KB, created by
Katrin Fischer
on 2022-07-08 09:40:39 UTC
(
hide
)
Description:
Bug 27779: Update 'REFUND' description in the database
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-07-08 09:40:39 UTC
Size:
2.15 KB
patch
obsolete
>From 2ccc4566df91fa5f9a2c4487821cf0cf2aed1142 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 20 May 2021 08:48:12 +0100 >Subject: [PATCH] Bug 27779: Update 'REFUND' description in the database > >This patch simplified the REFUND description from 'Refund applied >to a patrons fine' to simply 'Refund'.. this allows the description to >be combined with debit type descriptions simply to denote what it was >applied against instead of using the generic 'applied to a patrons fine' > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > installer/data/mysql/atomicupdate/bug_27779.perl | 8 ++++++++ > installer/data/mysql/mandatory/account_credit_types.sql | 2 +- > 2 files changed, 9 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_27779.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_27779.perl b/installer/data/mysql/atomicupdate/bug_27779.perl >new file mode 100644 >index 0000000000..c762799800 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_27779.perl >@@ -0,0 +1,8 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ # REFUND >+ $dbh->do( "UPDATE account_credit_types SET description = 'Refund' WHERE code = 'REFUND'" ); >+ >+ NewVersion( $DBversion, 27779, "Simplify credit descriptions"); >+} >diff --git a/installer/data/mysql/mandatory/account_credit_types.sql b/installer/data/mysql/mandatory/account_credit_types.sql >index 5ed88fdd2b..105575b425 100644 >--- a/installer/data/mysql/mandatory/account_credit_types.sql >+++ b/installer/data/mysql/mandatory/account_credit_types.sql >@@ -5,7 +5,7 @@ INSERT INTO account_credit_types ( code, description, can_be_added_manually, is_ > ('FORGIVEN', 'Forgiven', 1, 1), > ('CREDIT', 'Credit', 1, 1), > ('DISCOUNT', 'A discount applied to a patrons fine', 0, 1), >-('REFUND', 'A refund applied to a patrons fine', 0, 1), >+('REFUND', 'Refund', 0, 1), > ('LOST_FOUND', 'Lost item fee refund', 0, 1), > ('PURCHASE', 'Purchase', 0, 1), > ('CANCELLATION', 'Cancellation', 0, 1); >-- >2.30.2
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 27779
:
121218
|
121219
|
121224
|
121225
|
127552
|
127553
|
127554
|
130024
|
136491
|
136492
|
136493
|
136494
|
136495
|
137386
|
137387
|
137388
|
137389
|
137390
|
138809
|
138810
|
138811
|
138812
|
138813
|
138849
|
138883
|
138884