Bugzilla – Attachment 132212 Details for
Bug 28294
C4::Circulation::updateWrongTransfer should be moved into Koha::
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28294: Add 'WrongTransfer' to transfer reason enum
Bug-28294-Add-WrongTransfer-to-transfer-reason-enu.patch (text/plain), 3.54 KB, created by
Marcel de Rooy
on 2022-03-25 09:41:02 UTC
(
hide
)
Description:
Bug 28294: Add 'WrongTransfer' to transfer reason enum
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2022-03-25 09:41:02 UTC
Size:
3.54 KB
patch
obsolete
>From c799d532bbf1a342ca53a9e137ba54e9f3e5ca04 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 17 May 2021 17:14:04 +0100 >Subject: [PATCH] Bug 28294: Add 'WrongTransfer' to transfer reason enum >Content-Type: text/plain; charset=utf-8 > >This patch adds the 'WrongTransfer' value to the 'reason' enum in the >branchtransfers table. This is so we can use it as a reason for the >subsequent transfer when a trainsfer is triggered by a checkin at an >incorrect branch after transfer has been initiated. > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > .../data/mysql/atomicupdate/bug_28294.perl | 28 +++++++++++++++++++ > installer/data/mysql/kohastructure.sql | 2 +- > 2 files changed, 29 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_28294.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_28294.perl b/installer/data/mysql/atomicupdate/bug_28294.perl >new file mode 100644 >index 0000000000..63889d8e86 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_28294.perl >@@ -0,0 +1,28 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ >+ # Add 'WrongTransfer' to branchtransfers cancellation_reason enum >+ $dbh->do( >+ q{ >+ ALTER TABLE >+ `branchtransfers` >+ MODIFY COLUMN >+ `reason` enum( >+ 'Manual', >+ 'StockrotationAdvance', >+ 'StockrotationRepatriation', >+ 'ReturnToHome', >+ 'ReturnToHolding', >+ 'RotatingCollection', >+ 'Reserve', >+ 'LostReserve', >+ 'CancelReserve', >+ 'TransferCancellation', >+ 'WrongTransfer' >+ ) >+ AFTER `comments` >+ } >+ ); >+ >+ NewVersion( $DBversion, 28294, "Add 'WrongTransfer' to branchtransfers.reason enum"); >+} >diff --git a/installer/data/mysql/kohastructure.sql b/installer/data/mysql/kohastructure.sql >index 69b3613963..bec37adb24 100644 >--- a/installer/data/mysql/kohastructure.sql >+++ b/installer/data/mysql/kohastructure.sql >@@ -1554,7 +1554,7 @@ CREATE TABLE `branchtransfers` ( > `datecancelled` datetime DEFAULT NULL COMMENT 'the date the transfer was cancelled', > `tobranch` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '' COMMENT 'the branch the transfer was going to', > `comments` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'any comments related to the transfer', >- `reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve','TransferCancellation','Recall','CancelRecall') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer', >+ `reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve','TransferCancellation','Recall','CancelRecall','WrongTransfer') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer', > `cancellation_reason` enum('Manual','StockrotationAdvance','StockrotationRepatriation','ReturnToHome','ReturnToHolding','RotatingCollection','Reserve','LostReserve','CancelReserve','ItemLost', 'WrongTransfer','Recall','CancelRecall') COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'what triggered the transfer cancellation', > PRIMARY KEY (`branchtransfer_id`), > KEY `frombranch` (`frombranch`), >-- >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 28294
:
120637
|
121062
|
121063
|
121064
|
121077
|
121078
|
121079
|
121095
|
121096
|
121097
|
121714
|
121715
|
121716
|
130082
|
130083
|
130084
|
130085
|
130086
|
130087
|
132212
|
132213
|
132214
|
132215
|
132216
|
132217
|
160516
|
160517
|
160518
|
160519
|
160520
|
160521
|
160536
|
160692
|
168281
|
172778
|
172781
|
173856
|
174805