Bugzilla – Attachment 80567 Details for
Bug 20772
Make request metadata editable and add price_paid field
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20772: Add 'illrequest.price_paid'
Bug-20772-Add-illrequestpricepaid.patch (text/plain), 2.42 KB, created by
Tomás Cohen Arazi (tcohen)
on 2018-10-13 11:26:39 UTC
(
hide
)
Description:
Bug 20772: Add 'illrequest.price_paid'
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-10-13 11:26:39 UTC
Size:
2.42 KB
patch
obsolete
>From fa7f7f843267ea7f6bb6622f451908f63f728cc7 Mon Sep 17 00:00:00 2001 >From: Andrew Isherwood <andrew.isherwood@ptfs-europe.com> >Date: Thu, 17 May 2018 10:47:52 +0100 >Subject: [PATCH] Bug 20772: Add 'illrequest.price_paid' > >This patch adds a 'price_paid' column to 'illrequests' > >Signed-off-by: Barry Cannon <bc@interleaf.ie> > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > ...bug_20772-add-price_paid_column_to_illrequests.perl | 10 ++++++++++ > installer/data/mysql/kohastructure.sql | 3 ++- > 2 files changed, 12 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl b/installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl >new file mode 100644 >index 0000000000..5d32fb7914 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_20772-add-price_paid_column_to_illrequests.perl >@@ -0,0 +1,10 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ if( !column_exists( 'illrequests', 'price_paid' ) ) { >+ $dbh->do( "ALTER TABLE illrequests ADD COLUMN price_paid varchar(20) DEFAULT NULL" ); >+ } >+ >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 20772 - Add illrequest.price_paid column)\n"; >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index d01b2cb062..46e4459e89 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -4153,7 +4153,8 @@ CREATE TABLE illrequests ( > completed date DEFAULT NULL, -- Date the request was completed > medium varchar(30) DEFAULT NULL, -- The Koha request type > accessurl varchar(500) DEFAULT NULL, -- Potential URL for accessing item >- cost varchar(20) DEFAULT NULL, -- Cost of request >+ cost varchar(20) DEFAULT NULL, -- Quotes cost of request >+ price_paid varchar(20) DEFAULT NULL, -- Final cost of request > notesopac MEDIUMTEXT DEFAULT NULL, -- Patron notes attached to request > notesstaff MEDIUMTEXT DEFAULT NULL, -- Staff notes attached to request > orderid varchar(50) DEFAULT NULL, -- Backend id attached to request >-- >2.19.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 20772
:
75491
|
75492
|
75493
|
75494
|
75495
|
75496
|
75497
|
75563
|
77230
|
77231
|
77232
|
77233
|
77234
|
77235
|
77236
|
77237
|
80010
|
80011
|
80012
|
80013
|
80014
|
80015
|
80016
|
80017
|
80027
|
80028
|
80029
|
80030
|
80031
|
80032
|
80033
|
80034
|
80035
|
80036
|
80037
|
80039
|
80041
|
80042
|
80043
|
80044
|
80045
|
80046
|
80051
|
80232
|
80566
| 80567 |
80568
|
80569
|
80570
|
80571
|
80572
|
80573
|
80574
|
80575
|
80576
|
80577